File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes rich:modalPanel display problem  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "rich:modalPanel display problem  " Watch "rich:modalPanel display problem  " New topic

rich:modalPanel display problem

Q Rahman

Joined: Jul 09, 2009
Posts: 5
I have got a rich modal panel that gets displayed once the user hits the save button. However, if the form validation fails, the modal panel should not be displayed. Within the save button action method savePromotion(), I set a boolean displayModalPanel property to false if validation fails and to true if if it succeeds (by default it's set to true). Then using rich:componentControl, I display the modal panel which should be rendered only if the displayModalPanel is true. I use the rendered attribute of componentControl to control that. The problem: the modal panel always displays even if the displayModalPanel set to false within savePromotion()method. It seems somehow the rendered is not being re-evaluated. I am not sure how I can get this to work. Any help will be greatly appreciated.

Rajneesh Kumar Rajput
Ranch Hand

Joined: Feb 25, 2009
Posts: 39
Hi Rajman,
You can use this approach, it will help you.

see following....
I agree. Here's the link:
subject: rich:modalPanel display problem
jQuery in Action, 3rd edition