I'm new to JSF world please help me out in generating a pop up window in the page.
Here is my requirement I will be having a list of links in my master page(parent) on click of each link I need to show a pop up which contains some details, which I need to get from DB in the pop up mbean. I will have few buttons in my pop up and for each and every action I will be having a DB operation accordingly. I have tried out different ways and I failed.
The problem that I'm facing is when pop up loading for the first time it's well and good and projecting the values as expected. But for the second time it showing the new values in the init function and I cant see the new values on the screen instead its showing the first pop up values.
Have you checked your faces-config.xml file to make sure your bean is in request scope ?
<managed-bean-scope>request</managed-bean-scope>
If you bean is in session or application scope, the bean is not re-created each time you refresh the page so the values in the bean would not change.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With