| Chip, If what you are trying to accomplish is what I think, there may be a much better solution to your problem than using an onclick _javascript_ on the checkbox. I am assuming your are using your WORepetition to iterate over EO's (or other KVC compliant class). When I have this situation, I simple add a transient boolean instance variable to my EO (KVC compliant) class. Then I bind the WOCheckbox to the transient boolean. Now I can determine which objects are selected by reading the instance variable on the object used as an iterator in the repetition. Using this approach there is no need to keep a separate array of "selected" objects since the objects themselves track this state. It has worked very well for me. Understand that I'm making many assumptions about your design goal so this may not work in your case. On Oct 24, 2006, at 4:44 PM, Chip Myers wrote: Hi, I'm having trouble combining a WOCheckbox and WORepetition. I have a method named SetSelectedItem(), which adds or removes an element of the WORepetition to an NSMutableArray. I've added an onClick attribute to my WOCheckbox, which calls SetSelectedItem() -- Robert Walker |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]
