so this would associate my object with a checkbox? how do i place the select
objects in a collection from there?
-B
svenmeier wrote:
>
> I'm not sure I fully understand what you're trying to do, but
> CheckGroup/Check components are a nice solution for managing the selection
> of multiple objects.
> No need to introduce a boolean property in your domain objects.
>
> Please take a look at FormInput.java from wicket examples:
>
> CheckGroup checks = new CheckGroup("numbersCheckGroup");
> add(checks);
> ListView checksList = new ListView("numbers", NUMBERS)
> {
> protected void populateItem(ListItem item)
> {
> item.add(new Check("check", item.getModel()));
> item.add(new Label("number", item.getModelObjectAsString()));
> };
> };
> checks.add(checksList);
>
>>I don't understand that last post can you re phrase please..
>>
>>-B
>>
>>
>>
>>svenmeier wrote:
>>>
>>> Could it be that you slipped our CheckGroup/Check components? Cannot get
>>> simpler than that.
>>>
>>> Sven
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
--
View this message in context:
http://www.nabble.com/check-box-questions-how-to-I-associate-an-object-with-a-boolean-seletion-from-a-checkbox-component-tf3469311.html#a9716119
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user