Yes - that is exactly what @RenderBody does.

Cheers

Richard

Marko Mrkus wrote:
Sorry, formatting of the last message was awful... Here's the message again:

Hi, all!
Can you tell me is it possible to render body of a component in some other
component which is wrapped by this first one in Tapestry 4.1?

I have an example:
Page html:
<div jwcid="@Component">
            <p>This is top level component's body</p>
</div>

Component.jwc:
<div jwcid="$content$">
<div> Haeder </div> <div jwcid="@For" source="ognl:somePropArray"
                        value="ognl:currentProp">

                        <div jwcid="@InnerComponent">
                        <!-- Inner Component presents the body of the top
level component -->
                                <p>This is top level component's body</p>
                        <div>
                </div>
                
                <div> Footer </div>
</div>
Maybe use of @RenderBody component for @InnerComponent?
Thanks for your time,
Marko


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

--

Richard Kirby, Technical Director
Email: r...@capdm.com

Phone:  0131 477 8629
Fax: 0131 477 8621
Email: enquir...@capdm.com
Website: www.capdm.com
CAPDM Limited     Registered in Scotland: SC168970   VAT: 682 846 983
Registered address: 22 Forth Street, Edinburgh, EH1 3LH, UK
===========================================


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to