Attributes |
Name | Required | Binding Type | EL | Default | Description |
clientFunction | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| true | null | JavaScript code returning a boolean value ("true" for the valid value). The following variables are available: input - the DOM element for which the validator was specified; value - the value of the element to validate. |
detail | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| true | "validation error in input ''{0}''" | A detailed description of a validation error. The default value is specified in the OpenFaces Message Bundle. |
serverFunction | false | javax.el.MethodExpression
(signature must match boolean customValidatorTest(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object) )
| only | null | The method to validate the value on the server. The following variables are available: context - FacesContext; component - validated component; value - a validated value. The code must return a boolean value ("true" for the valid value). |
summary | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| true | "Validation Error" | A summary description of a validation error. The default value is specified in the OpenFaces Message Bundle. |