[jboss-user] [JBoss Seam] - Re: some help with <s:validate/> please...
atao
do-not-reply at jboss.com
Sat Oct 28 09:01:32 EDT 2006
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
More information about the jboss-user
mailing list