struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Date validation if a checkbox is checked
Date Tue, 04 Jan 2005 18:13:49 GMT
      I want to know, how can I validate a field that must contains a date
with the DatePattern ONLY IF a checkbox in my form is checked? For now, I
have this, but it doesn't work at all:

  <field property="startDate" depends="validWhen, date">
       <arg0 key="searchLots.error.invalidStartDate" />
               <var-value>(customerIdFlg == null)</var-value>

Anyone have a idea? Thank you.

Jean-Francois Croteau
Services Informatiques
IBM Canada Ltée (Bromont)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message