[jboss-user] [JBoss Seam] - Re: s:validateAll don't works.
leandro3.marinho
do-not-reply at jboss.com
Wed Jan 16 12:32:32 EST 2008
Excuse me, s:validateAll is work, but there are something I don't know.
I annoted my property like this:
| @Length (min=5, message="Invalid Name")
| public String getName{...}
|
If I fill the input control linked with this property with a name less then 5 lethers, s:validateAll show the message "Invalid Name" and it doesn't try update the model, but if I DON'T fill this field, the s:validateAll skips this validation and update the model, but Hibernate catch the invalid property, throws "org.hibernate.validator.InvalidStateException" and rollback the transaction.
Question:
If s:validateAll and hibernate use the same version of hibernate validator, why did s:validateAll accept this property and hibernate doesn't?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120569#4120569
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120569
More information about the jboss-user
mailing list