org.apache.tapestry5.beaneditor
Annotation Type Validate


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

May be placed on any getter or setter method, or on the matching field.


Required Element Summary
 String value
           
 

Element Detail

value

public abstract String value


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.