[jboss-user] [JBoss Seam] - Re: some help with <s:validate/> please...

atao do-not-reply at jboss.com
Mon Oct 30 03:12:48 EST 2006


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



More information about the jboss-user mailing list