• 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: R/R loop 101: how to trigger a subcomponent method before appendToResponse?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?


  • Subject: Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 05 Feb 2015 18:09:48 +0000
  • Thread-topic: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

That does not look right.  Everything should get awoken.  Are you caching component references in instance variables or something crazy?  Are you allying appendToResponse on a page that has not been awoken?

Chuck


On 2015-02-05, 7:58 AM, "OC" wrote:

Hello there,

looks like not even after all those years I can properly wrap my head around the R/R loop. I sort of thought all (sub)components get awake first; (then other methods not important here) and then all of them get appendToResponse.

Nope. After my code behaved weirdly, I've added logging to both awake and appendToResponse, and with some surprise found they are in fact interspersed like this:

===
- AWAKE DFEOForm@1460074866 IN null@null
- APPEND-RESPONSE DFEOForm@1460074866 IN null@null
  - AWAKE lstr@911219867 IN DFEOForm@1460074866
  - APPEND-RESPONSE lstr@911219867 IN DFEOForm@1460074866
  - AWAKE SharedHeader@1055406501 IN DFEOForm@1460074866
  - APPEND-RESPONSE SharedHeader@1055406501 IN DFEOForm@1460074866
    - AWAKE lstr@911219867 IN SharedHeader@1055406501
    - APPEND-RESPONSE lstr@911219867 IN SharedHeader@1055406501
...
===

Darn.

I need to allow my subcomponent to do something reasonable before the root page appendToResponse starts.

How could one achieve that?

Thanks a lot,
OC


_______________________________________________
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
 _______________________________________________
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: 
 >R/R loop 101: how to trigger a subcomponent method before appendToResponse? (From: OC <email@hidden>)

  • Prev by Date: Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?
  • Next by Date: Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist
  • Previous by thread: Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?
  • Next by thread: Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?
  • Index(es):
    • Date
    • Thread