• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with manual synchronization of variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Problems with manual synchronization of variable (From: Jacky Gagnon <email@hidden>)

  • Prev by Date: Re: WebObjects Developer 5.2 on Windows 2000
  • Next by Date: Re: Problems with manual synchronization of variable
  • Previous by thread: Problems with manual synchronization of variable
  • Next by thread: Re: Problems with manual synchronization of variable
  • Index(es):
    • Date
    • Thread