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.