Hi,

Now that I have started to use the validation, I have a practical validation question:

code snippet:

       addConstraint( new ConstrainedProperty( "birthDate" )
               .notNull(true)
               .notEmpty(true)
               .format( mInputDateFormat )
           );

template snippet(s):

${b MARK:ERROR}style="display ;"${/b}
${b MARK:ERROR:ALT}class="error_markalt"${/b}
${b ERRORMESSAGE:*}<b>${v ERRORMESSAGE/}</b>${/b}
${b ERRORS:*}${v ERRORS/}${/b}

${b MANDATORY:*}[Mandatory${/b}
${b INVALID:se_birthDate}[Format dd-MM-yyyy]${/b}

<tr class="error_mark" id="validationErrors" style="display: ${v displayErrors}none${/v};">
       <td>&nbsp;</td>
       <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td> <td ${v MARK:ALT:se_firstName}${/v}>${v ERRORS:se_firstName}&nbsp;${/v}</td> <td ${v MARK:ALT:se_lastName}${/v}>${v ERRORS:se_lastName}&nbsp;${/v}</td> <td ${v MARK:ALT:se_birthDate}${/v}>${v ERRORS:se_birthDate}&nbsp;${/v}</td>
       <td ${v MARK:ALT:se_street/}>${v ERRORS:se_street}&nbsp;${/v}</td>
       <td ${v MARK:ALT:se_zip/}>${v ERRORS:se_zip}&nbsp;${/v}</td>
       <td ${v MARK:ALT:se_city/}>${v ERRORS:se_city}&nbsp;${/v}</td>
       <td ${v MARK:ALT:se_country/}>${v ERRORS:se_country}&nbsp;${/v}</td>
       <td>&nbsp;</td>
       <td>&nbsp;</td>
   </tr>
The idea is to display an error row above the inline edited row in a table. If the format for the birthDate is not correct, two error messages are displayed: MANDATORY and INVALID
Is it possible to only display the INVALID in this particular case?


_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to