Annotation Type Validate


  • ({,})
    ()
    
    @UseWith({BEAN,COMPONENT,MIXIN,PAGE})
    public @interface Validate
    Used to attach validation constraints directly to a property (either the getter or the setter method). The annotation value is a comma separated list of validation constraints, each one identifying a validator type (such as "required", "minlength") and optionally, a constraint value. Most validators need a constraint value, which is separated from the type by an equals size (i.e., "maxlength=30"). In addition, the value may include validator macros. May be placed on any getter or setter method, or on the matching field.
    See Also:
    Translate
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      value