This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rich:modalPanel display problem

 
Q Rahman
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic