> You'll need to use the Environmental service in your page and add some > custom object on it, typically in @BeginRender. Then, in your component, you > invoke some method in this object. In the page, in some event after > @BeginRender, you get the value back.
I'm not sure how this helps the OPs problem though. BeginRender for your component is going to happen after the layout component has started rendering, and already output the title. Right? <t:layout title="title"> <t:mycomponent title="title"> </t:layout> t:mycomponent won't get a BeginRender until layout evaluates the <t:body/> Maybe if you help us understand what you want to accomplish we can come up with another way? For instance, if you want your t:mycomponent to actually render the title and nothing else then you can pass it as a parameter to the layout <t:layout> <p:title><t:mycomponent/></p:title> </t:layout> in t:layout you'd do something like @Parameter(name = "title") @Property private Block titleBlock; <title><t:delegate to="titleBlock"/></title> Josh On Thu, Jul 21, 2011 at 11:36 AM, Thiago H. de Paula Figueiredo <thiag...@gmail.com> wrote: > On Thu, 21 Jul 2011 15:32:27 -0300, George Christman > <gchrist...@cardaddy.com> wrote: > >> Yes, in my example I'm trying to pass a title generated in the page >> component back to the layout component. > > Tapestry's philosophy is that components (including pages) are and should be > black boxes, so the normal flow is from top to down, not the opposite. > > You'll need to use the Environmental service in your page and add some > custom object on it, typically in @BeginRender. Then, in your component, you > invoke some method in this object. In the page, in some event after > @BeginRender, you get the value back. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org