6 Replies Latest reply on Jul 8, 2009 4:24 AM by Matias Santana

    Closing modal Panel when facesMessages

    Ambrish Singh Newbie

      Hi All,

      I have a form inside modal panel. There is a Save button on the form and I want that when I submit the form then if facesMessages are not null then the modal panel is closed otherwise it remains open.

      I am adding messages in facesMessages components inside my bean. My requirement is that all validation related messages will display on modal panel while messages like record successfully created will display after modal panel is closed.

      How can I conditionally closed the modal panel.