org.apache.tapestry5.beaneditor
Annotation Type Validate


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
@Documented
@UseWith(value={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
 String value
           
 

Element Detail

value

public abstract String value


Copyright © 2003-2012 The Apache Software Foundation.