cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roberto Marra" <>
Subject password validation in CFORM
Date Tue, 03 May 2005 12:44:23 GMT
Hi all,
Im checking some validation example & I found this example:

   <fd:field id="password" required="true">
      <fd:datatype base="string"/>
        <fd:length min="5" max="20"/>

    <fd:field id="confirmPassword" required="true">
      <fd:label>Re-enter password:</fd:label>
      <fd:datatype base="string"/>
        <fd:assert test="password = confirmPassword">
          <fd:failmessage>The two passwords are not equal.</fd:failmessage>
    </fd:field>but the <fd:assert....> is not very clear for me. I understand

when password is equal confirmPassword then show the failmessage... is that right or there
are some mistake?


View raw message