Checkbox handling in Maverick

"Panchabhai, Amol" <[email protected]> Thu, 10 Jul 2008 12:38:37 -0700
Newsgroups gmane.comp.web.maverick.general
Message-ID <917023F4E653374E854933394535E48AB5427290@EX-SEA5-D.ant.amazon.com>
--===============1439294916==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_917023F4E653374E854933394535E48AB5427290EXSEA5Dantamazo_"

--_000_917023F4E653374E854933394535E48AB5427290EXSEA5Dantamazo_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

   I am new to Maverick and have been playing around with it since a few we=
eks. I basically have a page that displays a bunch of checkboxes (with the =
same name but different values). Upon submitting the form that contains thi=
s checkbox group, I need to identify all the checkboxes that were selected =
in the controller pertaining to the action. I know that a single checkbox i=
s treated as a Boolean and I can use is<field name> to get its value and th=
e corresponding setter is set<field name> but how do I use getter/setter fo=
r checkbox group sharing the same name? A code sample would really help.

-Amol


--_000_917023F4E653374E854933394535E48AB5427290EXSEA5Dantamazo_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Exchange Server">
<!-- converted from rtf -->
<style>.EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800=
000 2px solid; }</style>
</head>
<body>
<font face=3D"Calibri, sans-serif" size=3D"2">
<div>Hi,</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp; I am new to Maverick and have been playing around with it=
 since a few weeks. I basically have a page that displays a bunch of checkb=
oxes (with the same name but different values). Upon submitting the form th=
at contains this checkbox group, I need to
identify all the checkboxes that were selected in the controller pertaining=
 to the action. I know that a single checkbox is treated as a Boolean and I=
 can use <b>is&lt;field name&gt;</b> to get its value and the corresponding=
 setter is <b>set&lt;field name&gt;</b> but
how do I use getter/setter for checkbox group sharing the same name? A code=
 sample would really help.</div>
<div>&nbsp;</div>
<div>-Amol</div>
<div>&nbsp;</div>
</font>
</body>
</html>

--_000_917023F4E653374E854933394535E48AB5427290EXSEA5Dantamazo_--


--===============1439294916==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
--===============1439294916==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
%(real_name)s mailing list
%(real_name)s@%(host_name)s
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Archives are available at http://www.mail-archive.com/mav-user%40lists.sourceforge.net/
--===============1439294916==--