Madhav Bhargava wrote:
 > Documented usage of this component:

<h:inputText id="equal2"
                value="#{validateForm.equal2}"
                required="true">
    <t:validateEqual for="equal" />
</h:inputText>

Why is the validator component enclosed in an inputText component?
Since this validator is not going to validate the parent component
anyways,

It's not? Take another look. t:validateEqual is comparing two inputText components to see if their values are equal, right? One of them is referenced by the "for" attribute. The other one is the parent UIInput component. In this case, component with id "equal" will be compared with the inputText with id "equal2".

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.


Reply via email to