Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?
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: Ramsey Gurley <email@hidden>
- Date: Thu, 05 Feb 2015 10:10:56 -0700
https://developer.apple.com/legacy/library/documentation/WebObjects/Web_Applications/Articles/1_Architecture.html#//apple_ref/doc/uid/TP40003268-SW13
If using ajax, it is somewhat different from what is described in that document, but I have not studied it in depth.
On Feb 5, 2015, at 8:58 AM, OC <email@hidden> 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