validating checkbox

2006-06-21 Thread mansooraks
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]

Re: validating checkbox

2006-06-22 Thread The Jasper
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 -

RE: validating checkbox

2006-06-22 Thread mansooraks
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

Re: validating checkbox

2006-06-22 Thread The Jasper
ling 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 h

Re: validating checkbox

2006-06-22 Thread Scott Van Wart
The Jasper wrote: 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'

Re: validating checkbox

2006-06-22 Thread The Jasper
On 6/22/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: With multibox, all the checkboxes have the same name: A B So if none are checked, the property in the ActionForm will be String[0]. If there's a way of checking array lengths in the validwhen validator, that's all he should need, but I d