Re: Binding method called thrice
Re: Binding method called thrice
- Subject: Re: Binding method called thrice
- From: Chuck Hill <email@hidden>
- Date: Mon, 29 Mar 2004 09:05:29 -0800
What you are seeing is correct behavior.
On Mar 29, 2004, at 2:08 AM, Thomas Drevon wrote:
Hi,
I have a WORepetition in a sub component where the list binding is a
method call. The method looks something like this:
public NSArray getUnits() {
// do stuff on global private NSArray array
return array;
}
Now, the problem is that this method is called not once, but thrice!
Debugging has revealed the following request-response loop:
takeValuesFromRequest before super
getUnits()
takeValuesFromRequest after super
invokeAction before super
getUnits()
invokeAction after super
component appendToResponse before super
sub component appendToResponse before super
getUnits()
sub component appendToResponse after super
component appendToResponse after super
To my understanding, the last call to getUnits() is the only one that
should take place.
I've tried to set synchronizesVariablesWithBindings to return false on
my sub component (and sync bindings to the super component manually),
but it doesn't make any difference.
I've also made sure that my wod file is clean of any (in)visible
objects that might call stuff (anyway, this would have triggered stuff
in appendToResponse, not takeValuesFromRequest and invokeAction).
Side note: My sub component does not contain a form, but is inside a
form in the super component. However, my sub component includes a
button that submits the form it is placed inside.
Does anyone have suggestions what might cause this? Any help is
appreciated :-)
cheers,
Thomas
_______________________________________________
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.