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

atao do-not-reply at jboss.com
Mon Oct 30 05:55:05 EST 2006

anonymous wrote : If the field is null the hibernate validator won't run

As I understood, required="true" is needed to be sure that any hibernate validators specified will be run with s:validate(All).

But what about:
- if null value, I don't care (a value is optional)
- but if a value is written, it needs to respect a pattern, like no punctuation or no number inside the string

If I put a required="true" to get the hibernate validation in the second case, then the first case is always rejected by jsf.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981718#3981718

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981718

More information about the jboss-user mailing list