This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes rich:modalPanel display problem  Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "rich:modalPanel display problem  " Watch "rich:modalPanel display problem  " New topic
Author

rich:modalPanel display problem

Q Rahman
Greenhorn

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....
http://www.jboss.org/community/wiki/ModalPanelValidation
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: rich:modalPanel display problem
 
Similar Threads
sequence of invoking modal windows in jsf
Take input from <h:inputText> in rich <modalPanel>
Problem inside a richModalPanel
rich modal window submission
Troubles with rich:modalPanel