Yes you are right.
The validator I am creating should work with any Calendar/Date component
- for instance Tomahawk inputDate/calendar, jenia popup calendar.

I was initially thinking of making a validator which will not be
enclosed in any EditableValueHolder component but will take as
attributes id's of two EditableValueHolder components hosting two
different dates. But then on reading the spec I realized that such a
provision is not there.

But I guess I will need to have an EditableValueHolder as a parent for a
validator to work.

> -----Original Message-----
> From: Jeff Bischoff [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 10, 2006 8:10 PM
> To: MyFaces Discussion
> Subject: Re: custom validator exception
>
> 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.
>


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Reply via email to