anonymous wrote : JSF 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.
| bsmithjj
| Post
How to specify Hibernate validation with a field that may stay null? Sth like:
@Pattern(regex="^(|\\w(-| |\\w)*)$",
message=""#{messages['view.job.name.illegal.char']}")
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981666#3981666
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981666
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user