This could also be written as:

Block onBeforeRenderBody() { return _sidebar; }

On 4/10/07, Yann Ramin <[EMAIL PROTECTED]> wrote:

Just figured out you can return the block in a render stage to get it to
render. Deceptively simple, but the docs (from my reading), didn't
mention it.

        @BeforeRenderBody
        Block doSidebar()
        {
                return _sidebar;
        }


Yann Ramin wrote:
> I got a good start on this, but still missing something fundamental.
>
> In Page.java, I have the Sidebar component.
> In Page.html, I pass the component in a parameter
> <t:parameter name="sidebar">
>     <t:sidebar/>
> </t:parameter>
>
> In Layout.java I have a sidebar block
>
> @Parameter(required=true)
> private Block _sidebar;
>
> What I can't figure out is how to get the block to render.
>
> Thanks for all of your suggestions so far!
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to