|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Documented @Target(value=FIELD) public @interface Constraint
Use this to add a constraint to an input field. If a constraint is not met, then the user will see an error message besides the corresponding input element.
Optional Element Summary | |
---|---|
boolean |
required
Marks the input field as required. |
public abstract boolean required
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |