You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Morowitz, Michael" <mm...@playboy.com> on 2004/03/17 17:26:27 UTC
Single Checkbox Required
I have searched the archive of the list and I came up empty.
I want to use validator.xml to indicate that a single checkbox must be
checked 'true' on my form. Has anyone had success simply indicating a
boolean field to be "required"?
I've noticed that in the client-side javascript that is generated,
validateRequired does not look at fields of type 'checkbox'.
I have read that commons-validator added this functionality at some
point in the past, but has it not made it into the Struts validtion
package?
Thanks,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org