Re: multiple wocheckbox in form
Re: multiple wocheckbox in form
- Subject: Re: multiple wocheckbox in form
- From: Michael Engelhart <email@hidden>
- Date: Sat, 24 Jul 2004 17:25:25 -0500
Hi Andrew -
Thanks - that's exactly the trick I was looking for.
Cheers.
Michael
On Jul 24, 2004, at 4:04 PM, Andrew Lindesay wrote:
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.