You will also get the better results by putting the validator on the second field on the page rather than on the first field on the page. This is especially true for validateEqual, but less important for validateCompareTo.
On 8/10/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
validateCompareTo is a better choice than validateEqual. http://myfaces.apache.org/sandbox/validateCompareTo.html On 8/10/06, Robert Locklear <[EMAIL PROTECTED]> wrote: > http://myfaces.apache.org/tomahawk/validateEqual.html > > Thanks, > Robert > -----Original Message----- > From: Tom Serru [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 10, 2006 10:32 AM > To: [email protected] > Subject: Compare two password fields with a validator > > > Hi, > > Is there a way to create a validator to compare two fields (like a > password > and a password check field) ? I would like to have something like this > as > result: > > ... > <h:inputSecret id="password"> > <f:validator validatorId="CompareFields" > otherField="passwordCheck"/> > </h:inputSecret> > ... > <h:inputSecret id="passwordCheck"> > ... > > Thx... > -- > View this message in context: > http://www.nabble.com/Compare-two-password-fields-with-a-validator-tf208 > 3442.html#a5740422 > Sent from the MyFaces - Users forum at Nabble.com. > >

