JSF popup generation

I'm new to the JSF world, help me in creating a popup on the page.

Here is my requirement. I will have a list of links on my main page (parent) when each link is clicked. I need to show a popup that contains some details that I need to get from the database in the MBean popup. I will have several buttons in my popup, and for each action I will have a DB operation, respectively. I tried different ways and I failed.

The problem I am facing is a pop-up download for the first time, when it is good and good, and predicts the values โ€‹โ€‹as expected. But the second time it shows the new values โ€‹โ€‹in the init function, and I do not see the new values โ€‹โ€‹on the screen, instead I show the first pop-up values.

+3
source share
7 answers

Have you checked the faces-config.xml file to make sure your bean is in the request area?

<managed-bean-scope>request</managed-bean-scope>

If you are in a session or application area, the bean is not re-created each time the page is refreshed, so the values โ€‹โ€‹in the bean will not change.

+1
source

So (if I understand your problem correctly), the problem is that the second time the changed bean values โ€‹โ€‹do not break through to the interface?

I am surprised that this changes depending on whether it will popup or not.

Some thoughts:

  • Presumably when you open this popup, you just get access to the ie page http://localhost:8080/myApp/myPopupURL?
  • mbean ( mbean, java, #{name.javaBeanField}??) ?
  • , ? , (, )? , ? , ?

JSF, , , JSF . , URL (, ). URL- mbean, - , , int, 1 .

, , , - . JSF ( ).

0

, JSF ( , ), isPostBack() beans, , ; isPostBack(), , .

0

, , :

  • bean;
  • , , bean ;
  • , ?;
  • ( !) , ?
0

, , - JSF . div ( , ), div , .

0

I'm not such a big programmer for JSF, but I think you need JavaScript to run pop-ups when you click event.JSF is a server-side Java platform, so a new window may not open. I am not sure for this answer. used this link to learn JSF: http://www.javapassion.com/handsonlabs/jsfsimpleapps/#Exercise_1

0
source

MyFaces Orchestra supports multitasking out of the box.

0
source

All Articles