Re: Checkbox inside a WORepetition
Re: Checkbox inside a WORepetition
- Subject: Re: Checkbox inside a WORepetition
- From: George Domurot <email@hidden>
- Date: Thu, 6 Feb 2003 09:12:15 -0500
Make sure you are binding the checked attribute of WOCheckBox to the
boolean attribute you are attempting to set in the object that is bound
to the item attribute of your WORepetition. To pass the information
back to WO you can use the 'onClick' submit; however, this isn't
necessary - you may simply have a submit button within the form to pass
all the appropriate values back to the iterated object.
-George
On Wednesday, February 5, 2003, at 09:58 PM, Riaz Lalehzari wrote:
Hello,
Has anyone used the stepwise example using checkboxes inside of a
WORepetition?
(http://www.stepwise.com/Articles/Technical/WOF_Checkboxes.html)
The only way I could think of to save which ones have been clicked is
to add a binding 'onClick' that calls a function which adds the item
to a NSMutableArray. But the EOModeler always gives an error when I
add the binding.
In the example the function used to set the list of checkboxes checked
is:
public void setPersonChecked(boolean newPersonChecked) {
if (newPersonChecked) {
if (!selectionList.containsObject(currentPerson)) {
selectionList.addObject(currentPerson);
}
}
else
if (selectionList.containsObject(currentPerson)) {
selectionList.removeObject(currentPerson);
}
}
How can I call this without using a binding 'onClick'? How did they
call it in the example to update this selectionList?
Thanks,
Riaz
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
_______________________________________________
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.
_______________________________________________
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.