myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Bischoff <jbisch...@klkurz.com>
Subject Re: custom validator exception
Date Fri, 10 Nov 2006 14:40:06 GMT
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.



Mime
View raw message