<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}" />
Info | Value |
---|---|
Validator ID | omnifaces.Validator |
Handler Class | org.omnifaces.taghandler.Validator |
Description | None |
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.
|
for | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| If present, this attribute refers to the value of one of the exposed attached objects within the composite component inside of which this tag is nested. |
message | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
|
The validator message to be shown on failure. Any "{0}" placeholder in the message will be
substituted with the label of the referenced input component. Note that this attribute is ignored
when the parent component has already validatorMessage specified.
|
disabled | false | javax.el.ValueExpression
(must evaluate to 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.