anonymous wrote : SF only runs validatation (in this case the
HibernateValidator via the s:validate/s:validateAll tags) if the input field
isn't empty. To check that a field is not null / not an empty string you need
to use the required="true" attribute on the JSF component tag.
I use
| @Length(min=1,
message="#{messages['job.name.with.at.least.one.char']}")
|
It works fine even without any required="true" attribute, but only with
@Valid/@IfInvalid annotations.
With s:validate(All) an InvalidStateException is thrown and uncaught when a
hibernate validation failed.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981524#3981524
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981524
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user