ninada / full-hibernate-plugin-for-struts2

Automatically exported from code.google.com/p/full-hibernate-plugin-for-struts2
1 stars 0 forks source link

Group Validation Support #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to have validating groups support, as for now all the fields 
of the action annotated as @Valida are being validated which sometimes bring to 
performance issues. 

I suggest to have a @Groups annotation with array of groups (action methods 
will be optionally annotated), and in Struts2HibernateValidator while calling 
validate method on Validator instance pass the groups to it. This will limit 
validation to the validation group.

If required I can attach patches.

Original issue reported on code.google.com by tigran.b...@gmail.com on 4 Jun 2011 at 9:18