Summary
Tag name: <t:validateEqual>
Validator class: org.apache.myfaces.custom.equalvalidator.EqualValidator
Tag class: org.apache.myfaces.custom.equalvalidator.ValidateEqualTag
Facelet Tag Handler: org.apache.myfaces.validator.ValidatorBaseTagHandler
validator id: org.apache.myfaces.validator.Equal
A custom validator for validations against foreign component values.
Unless otherwise specified, all attributes accept static values or EL expressions.
Usage
<h:inputText id="equal" value="#{validateForm.equal}" required="true"/> <h:inputText id="equal2" value="#{validateForm.equal2}" required="true"> <t:validateEqual for="equal" /> </h:inputText>
Attributes
Name | Type | Supports EL? | Description |
---|---|---|---|
detailMessage | String | Yes | |
for | String | Yes | the id of the foreign component, which is needed for the validation In JSF 2.0 facelets mode is used to identify the components this validator should be applied to when using composite components. Please use forId in that case instead. |
forId | String | Yes | the id of the foreign component, which is needed for the validation |
message | String | Yes | |
summaryMessage | String | Yes |