Posted on Jun 4, 2011 by
Happy Lion
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.
Status: New
Labels:
Type-Defect
Priority-Medium