Re: Problems with manual synchronization of variable
Re: Problems with manual synchronization of variable
- Subject: Re: Problems with manual synchronization of variable
- From: Stephane Guyot <email@hidden>
- Date: Sat, 12 Feb 2005 09:19:43 +0100
Jacky,
have a look at : http://www.geeklair.net/~dluke/wwdc2000/416/ a very
good doc about ReusableComponents with diagram of each stage of the
request-response loop that may help you to understand your troubles.
Stateless implied synchronised manually, stateless component are shared
between sessions and
may be used many times in the same request, they have no state and must
take/set whatever needed from/to their parent.
HTH,
Stephane
Le 11 févr. 05, à 23:16, Jacky Gagnon a écrit :
Hi,
I have a stateless subcomponent with manual synchronization who
display some results to the user.
I discovered a problem when I invoke an action on a link under this
subcomponent; before my action is invoked, the subcomponent call
valueForBinding for synchronization (after the WORepetition inside it
called invokeAction). After that WebObjects execute the action
invoked by the user and the variables are synchronized again.
This situation cause me some problems because I hold the state of some
attributes in the parent component (for the time of the
request-response loop); I clear the state when awake is called. I
cannot do that if the subcomponent synchronize before some actions are
invoked by the user.
Why valueForBinding in the subcomponent with manual synchronization
is called before my action is invoked?
Thanks!
Jacky
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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