• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
re: multiple wocheckbox in form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: multiple wocheckbox in form
      • From: Michael Engelhart <email@hidden>
  • Prev by Date: Re: WOFileUpload: checking against Windows filepath
  • Next by Date: Re: multiple wocheckbox in form
  • Previous by thread: multiple wocheckbox in form
  • Next by thread: Re: multiple wocheckbox in form
  • Index(es):
    • Date
    • Thread