The following code doesn't seem to validate whether the user chose an item.
In other words if a user doesn't select anything it still passes validation:
JSP:
<html:select property="roles" multiple="true"
size="5">
<html:options
collection="<%=my.Const.ROLE_TYPES%>"
property="roleName" />
</html:select>
validation.xml:
<field property="roles"
depends="required">
<arg0 name="required" key="label.user.Roles" />
</field>
All the other fields validate just fine.
Should I assume select (since it will return a value no matter what for a
single select)
isn't supported as an element type which can be "required" ???