RenderBlock Component Index Rollover

RenderBody
org.apache.tapestry.components.RenderBody
Non Visual Component
 
Description
Renders the body (static HTML and components) wrapped by the container of the RenderBody component. Components which have HTML templates and can wrap other elements should include exactly one InsertBody component in their template.

This component is very useful for creating a common navigational component used by multiple pages of an application. Typically you create a common navigational component which contains navigational links (PageLink) to other pages and a RenderBody component which will insert the actual content of the page. The application pages then use the navigational component as their first element, and then their usual content. When the pages renders, it renders the surrounding navigational component and then the page's content.

Prior to release 2.2, this component was called InsertWrapped.

See Also
Block, Insert, RenderBlock, InsertText
Parameters
None

Body: removed
Informal parameters: forbidden
Reserved parameters: none

Examples

This example shows an implementation of the classical Border component, an application specific component. It is a common practice to use a Border component to provide common layout to almost all of application pages.

Agnosis

AGNOSIS feliz
Gracias al ciego destino
Nada es constante
Olvidados por el Hado
Si Él existe
Incomprensible y eterno
Silencio


Tapestry


<span jwcid="@Border">
<H1 align=center><FONT color=#ff3333>Agnosis</FONT></H1>
<TABLE align=center border=0>
<TR>
<TD>
<P>
<B>A</B>GNOSIS feliz
<BR/>
<B>G</B>racias al ciego destino
<BR/>
<B>N</B>ada es constante
<BR/>
<B>O</B>lvidados por el Hado
<BR/>
<B>S</B>i Él existe
<BR/>
<B>I</B>ncomprensible y eterno
<BR/>
<B>S</B>ilencio
</P>
</TD>
</TR>
</TABLE>
<br/>
</span>

Border.html
<html jwcid="@Shell" title="RenderBody Example">
<body jwcid="@Body">
<table width="100%" cellspacing="0" border="0">
<tr>
<td valign="top" style="text-align:justify;">
<span jwcid="@RenderBody">Page content goes here.</span>
</td>
</tr>
<tr>
<td valign="bottom">
<table width="100%" cellspacing="0" border="0">
<tr>
<td align="center">
<a href="http://jakarta.apache.org/tapestry"><img src="images/poweredbyTapestry.gif" width="79" height="33" border="0" alt="Tapestry"></a>
<br/>
<br/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

Border.jwc
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE component-specification
PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
<component-specification allow-body="yes" allow-informal-parameters="no">
</component-specification>

RenderBlock Component Index Rollover