I agree with you but unfortunately the customer for whom I'm developing the software doesn't, but additionally the problem in itself is something we should be able to solve relatively simply I would have thought as it may be a valid scenario in other software projects.

From: "Andrew Robinson" <[EMAIL PROTECTED]>
Reply-To: "MyFaces Discussion" <users@myfaces.apache.org>
To: "MyFaces Discussion" <users@myfaces.apache.org>
Subject: Re: [Tomahawk] validateEqual problem for second field
Date: Tue, 4 Sep 2007 10:41:39 -0600

Not a solution but a question,

why have the validate equal on both components, it should only be
necessary to put it on one of the components (like the 2nd one). The
user shouldn't need two messages telling them they screwed up, one
should be necessary :-)

-Andrew

On 9/4/07, Suhel Rizvi <[EMAIL PROTECTED]> wrote:
>
> I am using the tomahawk validateEqual tag to check if two (non mandatory) > fields on a form are equal to each other but hitting some problems related
> to the order of the field validations.
>
> In the example below the validation and error message attached to the second > field works fine. However for the validation on the first field it seems I > have to submit the form the fields are in twice if the fields are equal - > the first time it always displays the error message saying they are unequal
> but seems to realize they are equal on second submit.
>
> <h:inputText id="equal"
>                 value="#{validateForm.equal}"
>                 required="false">
>     <t:validateEqual for="equa2l" />
> </h:inputText>
> <h:inputText id="equal2"
>                 value="#{validateForm.equal2}"
>                 required="false">
>     <t:validateEqual for="equal" />
> </h:inputText>
>
> Does anyone know why this is happening or have a solution ?
>
> [I have also tried the sandbox validateCompareTo tag as an alternative with
> similar results.]
>
> _________________________________________________________________
> Get Pimped! FREE emoticon packs from Windows Live -
> http://www.pimpmylive.co.uk
>
>

_________________________________________________________________
Get Pimped! FREE emoticon packs from Windows Live - http://www.pimpmylive.co.uk

Reply via email to