I looked in the FAQ, and maybe this should go in it...
I have a WAComponent subclass and it does the main layout of my app, and I would like to get access to it without having to explicitly pass it into any children. Is this a current feature of Seaside 2.8? - Brian _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
self application rootComponent
-Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. > -----Original Message----- > From: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of Brian Brown > Sent: Thursday, August 23, 2007 10:59 AM > To: Seaside - general discussion > Subject: [Seaside] How do I get the root component? > > I looked in the FAQ, and maybe this should go in it... > > I have a WAComponent subclass and it does the main layout of my app, > and I would like to get access to it without having to explicitly > pass it into any children. > > Is this a current feature of Seaside 2.8? > > - Brian > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
> self application rootComponent
This answers the class of the root component. I assume you want the instance of the root component, right? In that case the answer is no. The session doesn't know the actual instance of the root component. There might be multiple render loops going on with different root components. Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Ah, yes, indeed. I use that in few places to refer to some settings on
the root class, but never the instance itself, bad suggestion on my part. Cheers! -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. > -----Original Message----- > From: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of Lukas Renggli > Sent: Thursday, August 23, 2007 2:17 PM > To: Seaside - general discussion > Subject: Re: [Seaside] How do I get the root component? > > > self application rootComponent > > This answers the class of the root component. I assume you want the > instance of the root component, right? > > In that case the answer is no. The session doesn't know the actual > instance of the root component. There might be multiple render loops > going on with different root components. > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Lukas Renggli
On Aug 23, 2007, at 3:17 PM, Lukas Renggli wrote: >> self application rootComponent > > This answers the class of the root component. I assume you want the > instance of the root component, right? You are correct. > > In that case the answer is no. The session doesn't know the actual > instance of the root component. There might be multiple render loops > going on with different root components. > ok, I'll just pass it on creation then ;) Thanks > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |