Rahul Juneja
ThoughtClicks - http://techlabs.thoughtclicks.com
jaime collins wrote:I am wondering the same thing.
<h:outputText value="passwords must be 6 characters long." rendered="#{facesContext.messages.contains(INVALID_PASS)}" />
In other words, I would like to render the above output if an only if facesContext.getMessages contained the message INVALID PASSWORD. Which was set when the password validator determined that the password entered was not in correct format.
This has nothing to do with page validation!! So, checking if fields are null dont apply to this problem.
Any ideas?
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Independent Programmer - Technology Enthusiast - JUG Leader from JUG Joglosemar
Benny Bottema wrote:
Don't get me started about those stupid light bulbs. |