Hi,
I am new to rich faces and was impressed with live demo and rich:ajaxValidation. I wanted to try it my self and created simple manged bean with two properties and JSP page:
<h:inputText id="name" value="#{person.name}" required="true" requiredMessage="Must!" >
<f:validateLength minimum="3" maximum="12"/>
<r:ajaxValidator event="onblur"/>
</h:inputText>
<h:message for="name" /> <br/>
First it complained that it can't find org.hibernate.validator.ClassValidator. I was puzzled because I didn't use any hibernate annotations or anything like that. Any way, I added hibernate-validator, than i had to add more and more hibernate jars including hibernate-core. And finally slf4j. But still no hope for me. slf4j required slf4j-impl so I had to get it form slf4j web site but there is some probelm with versions:
java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory
So, at the end, I wasn't able to run simplest possible example of ajaxValidator.
How is this supposed to work? Live demo shows 2 examples: one with and one without annotated bean. Can this work without hibernate validator? Or at least without hibernate-core? I mean... WTF?
Would it be possible to make this tag to avoid bean validation? It would be much more useful if I could get ajaxed validation message just for simple cases like this.
I would appreciate if someone could provide rationale behind this.
Thanks.