[jboss-user] [JBoss Seam] - Re: some help with <s:validate/> please...
do-not-reply at jboss.com
Mon Oct 30 08:26:28 EST 2006
anonymous wrote : In other words what I am saying is that all hibernate validators work as you describe EXCEPT @NotNull/@Length(min=1).
After some more trials, I found that with no required="true" and:
- @NotNull, the null value is accepted!
- any other hibernate validation which assumes a non null string, as @Length(min=1), a exception is generated and uncaught.
For exemple with a null input :
- "^\\w*$" will be fine
- "^\\w+$" will throw an uncaught exception
Petemuir, thanks for help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981755#3981755
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981755
More information about the jboss-user