You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Manjith Kumar Adapa <ma...@aztec.soft.net> on 2005/09/27 16:00:25 UTC
How to use RenderBody to render more than 1 static html??
Hi,
Well, in my application I need to render 4 common html's in all the html
pages one as header, one as footer and so on.
How can I use RenderBody to render different static htmls in my html.
I have been through the UserGuide example for RenderBody...
That example renders only 1 static html by using .jwc file
But how can I implement RenderBody in my case so that I can refer
To different jwcids to render different static htmls.
Can somebody please help me?
Thanks in Advance.
Thanks
Manjith
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: How to use RenderBody to render more than 1 static html??
Posted by Darío Vasconcelos <da...@gmail.com>.
You could do something like
<span jwcid="@ComplexBlock">
<span jwcid="@Block1">Some content</span>
<span jwcid="@Block2">Some other content</span>
</span>
And in ComplexBlock.html (which is a component):
<table>
<tr>
<td>
<span jwcid="@RenderBlock" block="ognl:page.components.Block1"/>
</td>
</tr>
<tr>
<td>
<span jwcid="@RenderBlock" block="ognl:page.components.Block2"/>
</td>
</tr>
</table>
On 9/27/05, Manjith Kumar Adapa <ma...@aztec.soft.net> wrote:
> Hi,
>
> Well, in my application I need to render 4 common html's in all the html
> pages one as header, one as footer and so on.
> How can I use RenderBody to render different static htmls in my html.
> I have been through the UserGuide example for RenderBody...
> That example renders only 1 static html by using .jwc file
> But how can I implement RenderBody in my case so that I can refer
> To different jwcids to render different static htmls.
>
> Can somebody please help me?
> Thanks in Advance.
>
> Thanks
> Manjith
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
I have enough money to last me the rest of my life, unless I buy something.
Jackie Mason
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: How to use RenderBody to render more than 1 static html??
Posted by Peter Ertl <pe...@gmx.org>.
Mabye give @Block and @RenderBlock a try ?!
> --- Ursprüngliche Nachricht ---
> Von: Manjith Kumar Adapa <ma...@aztec.soft.net>
> An: Tapestry users <ta...@jakarta.apache.org>
> Betreff: How to use RenderBody to render more than 1 static html??
> Datum: Tue, 27 Sep 2005 19:30:25 +0530
>
> Hi,
>
> Well, in my application I need to render 4 common html's in all the html
> pages one as header, one as footer and so on.
> How can I use RenderBody to render different static htmls in my html.
> I have been through the UserGuide example for RenderBody...
> That example renders only 1 static html by using .jwc file
> But how can I implement RenderBody in my case so that I can refer
> To different jwcids to render different static htmls.
>
> Can somebody please help me?
> Thanks in Advance.
>
> Thanks
> Manjith
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org