Re: Validator for checkboxes input field

2003-08-14 Thread "José Fortunato H. Tomás"
You give the same name for all checkboxes, this is obvious I think! If you define an property as an Integer[] for example, then you receave an Array with a number of entries equal to the number of boxes checked. I have, some weeks ago, made an basic ActionForm, and if I'm correct, when the prop

RE: Validator for checkboxes input field

2003-08-14 Thread Alex Shneyderman
> > Out of curiosity, how do you group a number of checkboxes? > You name then tha same and what you get on the server side is a list of values. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

RE: Validator for checkboxes input field

2003-08-14 Thread Yansheng Lin
unato H. Tomás [mailto:[EMAIL PROTECTED] Sent: August 12, 2003 8:10 AM To: Struts Users Mailing List Subject: Validator for checkboxes input field Hi! Any one has an example or code using Validator for a form-bean where exists an input that is a group of checkboxes? I need to use "requ

Re: Validator for checkboxes input field

2003-08-14 Thread Robert Leland
José Fortunato H. Tomás wrote: Hi! Any one has an example or code using Validator for a form-bean where exists an input that is a group of checkboxes? I need to use "required", and number of cheks checked, but until now I couldn't find any way to use validator correctly for this kind of situa

Re: Validator for checkboxes input field

2003-08-14 Thread Adam Hardy
You would have to roll your own I presume, since a checkbox is either checked or null. How would you check for null? It seems counter-intuitive. Out of curiosity, how do you group a number of checkboxes? Adam José Fortunato H. Tomás wrote: Hi! Any one has an example or code using Validator for

Validator for checkboxes input field

2003-08-14 Thread "José Fortunato H. Tomás"
Hi! Any one has an example or code using Validator for a form-bean where exists an input that is a group of checkboxes? I need to use "required", and number of cheks checked, but until now I couldn't find any way to use validator correctly for this kind of situation. In the current work, 99% of

Re: Validator for checkboxes input field

2003-08-14 Thread "José Fortunato H. Tomás"
Alex Shneyderman wrote: Out of curiosity, how do you group a number of checkboxes? You name then tha same and what you get on the server side is a list of values. Yup! List, fisicaly an Array! I didn't look to the source code, in the HTTP request using TCPReflector you may see for a group of c