DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
Unknown macro: {snippet}
Usage
Unknown macro: {snippet}
Parameters
Unknown macro: {snippet}
Examples
An Annotated Interface
- Mark the interface with @Validation()
- Apply standard or custom annoations at method level
Unknown macro: {snippet}
An Annotated Class
Unknown macro: {snippet}
When multiple methods are used to map different actions on the same class, and one of them is annotated with @Validations, those validators will be triggered for all the actions, unless they are annotated with @SkipValidation or validateAnnotatedMethodOnly is set to true in the "validation" interceptor, like:
<interceptor-ref name="validation">
<param name="validateAnnotatedMethodOnly">true</param>
<param name="excludeMethods">input,back,cancel,browse</param>
</interceptor-ref>
2 Comments
Jan Normann Nielsen
This annotation only has one parameter, namely
validations. Examples should also show usage of this.Oscar Burgos Martín
I think that it should tell that the validations are applied to all the methods of the action, unless a method was annotated with @SkipValidation...and why.