@Retention(value=RUNTIME) @Target(value={PARAMETER,FIELD}) @Inherited @Documented public @interface URLValidator
Annotation representing a validation rule attached to an individual path parameter or a query parameter.
| Modifier and Type | Optional Element and Description |
|---|---|
int |
index
A pattern validator for this mapping.
|
String |
onError
The pretty:mappingId or #{bean.method} to evaluate, should validation
fail.
|
String |
validator
EL method binding referring to a method performing the validation.
|
String[] |
validatorIds
The IDs of the JSF Validator objects to attach and process before bean
value injection.
|
public abstract int index
A pattern validator for this mapping. Validators may be attached to individual parameters in each dynamic URL. Only used when validating path parameters.
public abstract String onError
The pretty:mappingId or #{bean.method} to evaluate, should validation fail.
public abstract String[] validatorIds
The IDs of the JSF Validator objects to attach and process before bean value injection.
public abstract String validator
EL method binding referring to a method performing the validation.
The referenced method must have the same signature as
Validator.validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, Object).
ValidatorCopyright © 2014 OCPsoft. All Rights Reserved.