<o:validator> basically extends the <f:validator> tag family with the
possibility to evaluate the value expression in all attributes on a per request basis instead of on a per view
build time basis. This allows the developer to change the attributes on a per request basis, such as the
disabled attribute.
<o:validator validatorId="someValidatorId" disabled="#{param.disableValidation}" />
Note that not all available attributes are listed. This depends on the validator you're specifying.
When you specify for example the standard <f:validateLongRange> by
validatorId="javax.faces.LongRange", then you'll be able to use all its attributes such as
minimum and maximum as per its documentation, but then with the possibility to supply
request based value expressions.
<o:validator validatorId="javax.faces.LongRange" minimum="#{item.minimum}" maximum="#{item.maximum}" />
| Name | Required | Type | Description |
|---|---|---|---|
binding |
false
| javax.el.ValueExpression
(must evaluate to javax.faces.validator.Validator)
| A ValueExpression that evaluates to an object that implements the javax.faces.validator.Validator interface. |
validatorId |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String)
|
Validator identifier of the Validator to be created and registered.
|
disabled |
false
| javax.el.ValueExpression
(must evaluate to java.lang.Boolean)
| A boolean value enabling request based determination of whether or not this validator is enabled on the enclosing component. |
Output generated by Vdldoc View Declaration Language Documentation Generator.