A method only refered to in the wod-file is called during invokeAction
A method only refered to in the wod-file is called during invokeAction
- Subject: A method only refered to in the wod-file is called during invokeAction
- From: Kaj Hejer <email@hidden>
- Date: Tue, 10 May 2005 15:15:52 +0200
Hi!
We have a component with a WORepetition where list is bound to a
method in the component (lets call it getMyListElements). This method
is called during appendToResponse. This method is not refered to from
ANY place except for in the wod-file for this component.
Everything is good so far :)
But... this method is also called during invokeAction when I click a
link in the WORepetition that iterate over this array. The link is
bound to a method where the currentItem for the repetition is
accessed like
public WOComponent doMyStuffWithCurrent() {
...
nextPage.setSelectedIdem(currentItem);
return nextPage;
}
I noticed that this method was called twice (when looking at sql-
debuginfo) and implemented invokeAction just calling super, but with
a debugstatement before and after the call to super, and there...
while beeing in super.invokeAction getMyListElements is called.
I have a debugstatement in doMyStuffWithCurrent too :) and I this
method is called after super.invokeAction has finished.
Can the access to currentSporreundersokelse trigger a call to the
method from which the array I iterate over?
I see this both with WO5.2.2 and WO5.2.4.
Has anybody here seen anything similar? Any ideas why the method is
called during invokeAction?
TIA for any input!
-Kaj :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden