Take a look at the Check and CheckGroup components. You can populate your
list of items of unknown size with a ListView and put Check components
inside. Then add your ListView to a CheckGroup. When the form is submitted
the CheckGroup will have a collection of the items that were checked within
its model.

Hope this helps.

Josh

-----Original Message-----
From: Steven Haines [mailto:[email protected]] 
Sent: Monday, March 29, 2010 1:55 PM
To: Wicket User List
Subject: Checkbox Group

Hi Everyone, 

Our web developer is using checkboxes in the place of radio buttons with
JavaScript that ensures that only one is selected at a time. I know how to
handle radio buttons and to handle individual checkboxes, but does anyone
have a good strategy for dealing with a checkbox "group"? For other sections
of our site I handled this by defining a checkbox for each item and then
setting the appropriate value. In this page, however, we have an unknown
number of checkboxes, which makes things a bit more difficult...

Thanks
Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to