4 Replies Latest reply on May 24, 2007 7:03 AM by Ilya Shaikovsky

    Modal Window Close

    samyem tuladhar Newbie

      I am trying to implement a modal window to save some data. It has a save button which, when clicked, saves the content in the modal window and then closes the modal window. However, if there are validation problems, it should not close the window.
      The problem is that to close the window, RichFaces uses javascript and the saving part is done by an actionlistener. How would I communicate the result of the actionlistener to the javascript so that the modal window does not close if there are validation problems in the form?