You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Suresh Addagalla <su...@wipro.com> on 2003/02/05 15:26:44 UTC
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