hi, I think I shoul've looked more closely at your question. There are 2 problems I see. One is you want to make sure at least one checkbox is checked. This could be done with validwhen. The other is that checkbox values are only sent if checked, otherwise they are null. I don't know how you would combine this with html:multibox, but with multiple checkbox fields you should be able to check that at least one is selected. I haven't gone any deeper than that. Maybe a custom validator would work better for you, but I think it can be done with the standard validators.
mvg, Jasper On 6/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi jasper, S I have tried with required validator. It s not working. regards, Mansoor -----Original Message----- From: The Jasper [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 1:30 PM To: Struts Users Mailing List Subject: Re: validating checkbox hi, have you tried the required validator? mvg, Jasper On 6/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Dear all, > How can I validate atleast one checkbox should be selected b4 form > submited. I am using html:multibox. > > regards, > Mansoor > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]