Hey all,

I have a list view that contains a list of objects. these objects are
selectable via checkboxes. My problem is that i don't know how to know or
tell my code what objects have been selected. here is what i want to do.

i ahve a list of objects lets call them pens. So i have a list of 5
different types of pen objects. this object type is a property ( a list of
this object to be specific) in another object say a pencilCase.  i want a
user to select 0-many different pens which will then be placed in the pencil
case by the applicaition. what i am not sure how to do is associate each pen
in the list with what is selected. I seen on the wiki that i can add a
boolean property to the pens called selected. and make that what the
checkbox renders on. but i don't have access to the pens to do that. is
another some way i can do an association externally? I thought of creating a
separate list of booleans variables that i can compare side by side with the
list of pens. selection of check boxes will set the booleans in that list.
then look at what is true and go get the pen in the pens list at that
position and do what i got to do with it. however I think this method 1- may
not work and 2 - is to elementary and not very professional. I am sure there
is another way to do this. Please advise.


-B
-- 
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#a9680769
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

Reply via email to