This content has been marked as final.
Show 3 replies
-
1. Re: How to get the number of Validation error messages?
nbelaevski Jan 2, 2008 7:24 PM (in response to indyjones)Consider http://java.sun.com/javaee/javaserverfaces/1.0/docs/api/javax/faces/context/FacesContext.html#getMessages() usage to inspect all messages. Note that messages can be queued for another errors, so it's better to implement PhaseListener and watch if VALIDATE_VALUES phase was the last one before RENDER_RESPONSE. Phase listener approach won't work right if you have immediate input components.
-
2. Re: How to get the number of Validation error messages?
daedlus Jan 2, 2008 11:11 PM (in response to indyjones)also in xhtml page if you want to know
"#{empty facesContext.maximumSeverity}"
true if no errors -
3. Re: How to get the number of Validation error messages?
indyjones Jan 3, 2008 8:53 AM (in response to indyjones)Thanks guys...
I will look into both...
thanks
indy