Re: Checkbox handling in Maverick

"Eelco Hillenius" <[email protected]> Thu, 10 Jul 2008 12:49:38 -0700
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
Are you considering Maverick for a new project Amol?

Eelco

On Thu, Jul 10, 2008 at 12:46 PM, Scott Hernandez
<[email protected]> wrote:
> There is an example of this in the pig sample.
>
> Look at line 25 of
> http://mav.cvs.sourceforge.net/mav/pig/src/java/org/infohazard/pig/web/controller/GalleryManageSubmit.java?revision=1.3&view=markup where
> the extractPrefixedIds function is used. It returns an array of the checked
> values. The function is defined in this helper class
> http://mav.cvs.sourceforge.net/mav/pig/src/java/org/infohazard/pig/web/support/ControllerBase.java?revision=1.3&view=markup.
>
> I hope this helps.
>
> ________________________________
> From: [email protected]
> To: [email protected]
> Date: Thu, 10 Jul 2008 12:38:37 -0700
> Subject: [Mav-user] Checkbox handling in Maverick
>
>
> Hi,
>
>    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 checkboxes (with the
> same name but different values). Upon submitting the form that 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 is<field name> to get its value and the
> corresponding setter is set<field name> but how do I use getter/setter for
> checkbox group sharing the same name? A code sample would really help.
>
> -Amol
>
> -------------------------------------------------------------------------
> 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
> _______________________________________________
> %(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/
>

-------------------------------------------------------------------------
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
_______________________________________________
%(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/