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
>
> 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
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
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
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
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
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
7 matches
Mail list logo