re: multiple wocheckbox in form
re: multiple wocheckbox in form
- Subject: re: multiple wocheckbox in form
- From: Andrew Lindesay <email@hidden>
- Date: Sun, 25 Jul 2004 09:04:32 +1200
addProductToCompareList() method that somehow knows which checkbox is
connected to which object. I have the products being displayed in a
Hello Michael;
If you're going through a WORepetition of product objects in your
component then you'll have an interation variable like "aProduct". I
tend to keep an NSMutableSet or something handy to remember which
products I want and then I do something like this...
public boolean getIsSelectedForAProduct() {
chosenProductSet.containsObject(aProduct); }
public void setIsSelectedForAProduct(boolean value) {
chosenProductSet.addObject(aProduct); }
...and bind "isSelectedForAProduct" to the "checked" binding on your
WOCheckBox.
cheers.
___
Andrew Lindesay
http://www.lindesay.co.nz/
021 47 0929
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.