0 Replies Latest reply on Oct 1, 2011 10:12 PM by Akaine Harga

    execute something automatically when facesContext.maximumSeverity is not null

    Akaine Harga Novice

      Hello,

       

      I've been wandering if it's possible using RF3.3.3 to execute some JS in case facesContext.maximumSeverity!=null during ajax submits without attaching explicitly the script to every element that can potentially produce the errors.

       

      Let's say we have a modal window with rich:messages defined inside a template, and a page using this template with a button. What could I do to make the modal window appear in case the button produces some errors (validation, manually added messages, etc.) without calling the "show" method attached to the button?

       

      I've already tried playing with a4j:status and a4j:form with no result.