How can I use Hibernate Validation with my Richfaces project?
I am using Richfaces 3.3.3, JSF 1.2, and JBoss Tools 3.1. I believe this has Hibernate Validator 4.1.
I am trying to use Hibernate annotation validation in conjunction with the . If I use the required=true attribute of the form components, 开发者_如何转开发then the validation messages are printed as expected. However none of the hibernate validators print. The console says that a validator is being instantiated but no messages are printed.
Are these versions compatible? What coule be wrong? I followed this example: usage
EDIT: When I run the page and enter some info, onblur I get this info on the console (using Eclipse).
11:39:13,004 INFO [org.hibernate.validator.util.Version] Hibernate Validator 4.1.0.Final
11:39:13,036 INFO [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
11:39:13,153 INFO [org.hibernate.validator.Version] Hibernate Validator 3.1.0.GA
11:39:13,168 INFO [org.hibernate.annotations.common.Version] Hibernate Commons Annotations 3.2.0.Final
To me that means its firing, just not displaying the message. Any suggestions with this new info in mind?
This should help: RichFaces with Hibernate Validator
精彩评论