01: package org.caramba.validator;
02:
03: import java.lang.annotation.Retention;
04: import java.lang.annotation.Target;
05: import static java.lang.annotation.ElementType.FIELD;
06: import static java.lang.annotation.RetentionPolicy.RUNTIME;
07:
08: /**
09: * Created by IntelliJ IDEA.
10: * User: Pieter
11: * Date: May 5, 2006
12: * Time: 7:12:02 AM
13: * To change this template use File | Settings | File Templates.
14: */
15: @Target({FIELD})
16: @Retention(RUNTIME)
17: public @interface ValidateBeforeClickEvent {
18: /**
19: * A comma seperated list of componentId's which must be valid (validate()==true) before the clickListener will
20: * be triggered
21: */
22: String validatingComponentIds() default "";
23:
24: ValidationTrigger trigger() default ValidationTrigger.ALWAYS;
25:
26: }
|