I suspect that you have to override reset method in your ActionForm class to
set default value of checkbox.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-----Original Message-----
From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] 
Sent: February 5, 2003 9:27 AM
To: 'Struts Users Mailing List'
Subject: html:select validation

Hi,

I have an html:select with multiple option as follows.

<html:select multiple="true" size="3" property="serviceSetOfService">
  <html:options collection="serviceSets" property="code"
labelProperty="name"/>
</html:select>

My validator fails to validate the above one for "required". If I leave
the selection box without selecting and submit the form, Validator
doesn't complain. Pls let me know if anyone has a clue why this is
happening.

My validation.xml has:

            <field property="serviceSetOfService"
                depends="required">
                    <arg0 key="text.services.serviceset"/>
             </field>

Thanks,
Suresh

Reply via email to