• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

rich:modalPanel display problem

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 am displeased. You are no longer allowed to read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic