-
1. Re: RFC: Validation groups
gavin.king Dec 13, 2005 3:47 PM (in response to rdewell)I'm inclined to think that a better approach in this case would be to call Hibernate Validator programmatically, rather than via annotations. But I might be wrong. I think I kinda see what you are doing. I'd like to know if this is something that other people run into.
-
2. Re: RFC: Validation groups
patrick_ibg Dec 13, 2005 7:16 PM (in response to rdewell)I have some wizards which basically null out the appropriate form beans and put them back in when it's on the right screen.
This doesn't solve your problem though, as you have no idea in advance which form will get submitted.
Maybe as an alternative, create a @ValidateFor (names = {"seamName1", "name2"}) annotation which can decorate either a method or a class. -
3. Re: RFC: Validation groups
patrick_ibg Dec 13, 2005 7:20 PM (in response to rdewell)This could also fold in the @IfInvalid annotation:
@ValidateFor (names = {"seamName1", "name2"}, invalidOutcome = REDISPLAY)