You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Error formatting macro: snippet: java.lang.NullPointerException

Usage

Error formatting macro: snippet: java.lang.NullPointerException

Parameters

Error formatting macro: snippet: java.lang.NullPointerException

Examples

An Annotated Interface

  • Mark the interface with @Validation()
  • Apply standard or custom annoations at method level
Error formatting macro: snippet: java.lang.NullPointerException

An Annotated Class

Error formatting macro: snippet: java.lang.NullPointerException

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>
  • No labels