layout: default title: FieldExpressionValidator Annotation parent: title: Annotations url: annotations.html

FieldExpressionValidator Annotation

This validator uses an OGNL expression to perform its validator. The error message will be added to the field if the expression returns false when it is evaluated against the value stack.

Usage

The annotation must be applied at method level.

Parameters

Examples

 @FieldExpressionValidator(message = "Default message", key = "i18n.key", shortCircuit = true, expression = "an OGNL expression")