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

Reply via email to