blob: f93f95bf83483e478809cc98a51ab9baa67d17d8 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- $Id$ -->
<html>
<head>
<title>RenderBody</title>
<link rel="stylesheet" type="text/css" href="Tapestry.css" title="style">
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left"><A href="RenderBlock.html"><IMG alt=RenderBlock src="common-images/prev.png"></A></td>
<td align="middle"><A href="index.html"><IMG alt="Component Index" src="common-images/home.png" ></A></td>
<td align="right"><A href="Rollover.html"><IMG alt=Rollover src="common-images/next.png"></A></td>
<tr>
<tr>
<td colspan="3"><hr></td>
</tr>
<tr>
<td colspan="3">
<table border="0" cellpadding="4" cellspacing="4" width="100%">
<tr valign="top">
<td>
<table>
<tr>
<td><font size="+2"><b>RenderBody</b></font></td>
</tr>
<tr>
<td>
<A href="../api/org/apache/tapestry/components/RenderBody.html">
org.apache.tapestry.components.RenderBody</A>
</td>
</tr>
</table>
</td>
<td>
<table align="right" valign="middle" bgcolor="#c0c0c0" cellpadding="8">
<tr>
<td>Non Visual Component</td>
</tr>
</table>
</td>
</tr>
<tr valign="center">
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2">
<b>Description</b>
<br>
Renders the body (static HTML and components)&nbsp;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.
<p>
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
(<a href="PageLink.html">PageLink</a>) 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.</p>
<P>Prior to release 2.2, this component was called
<STRONG>InsertWrapped</STRONG>.</P>
</td>
</tr>
<tr>
<td colspan="2">
<b>See Also</b>
<br>
<A href="Block.html">Block</A>,
<A href="Insert.html">Insert</A>,
<a href="RenderBlock.html">RenderBlock</a>,
<A href="InsertText.html">InsertText</A>
</td>
</tr>
<tr>
<td colspan="2">
<b>Parameters</b>
<br>
None
<p>
Body: <STRONG>removed</STRONG>
<BR>
Informal parameters:
<STRONG>forbidden</STRONG>
<br>
Reserved parameters: <EM>none
</EM></p>
</td>
</tr>
<tr>
<td colspan="2">
<b>Examples</b>
<p> 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. </p>
<table width="200" class="examples" cellspacing="0" border="0" align="center">
<tr>
<td valign="top" style="text-align:justify;">
<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/>
</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>
<br>
<pre>&lt;span jwcid=&quot;@Border&quot;&gt;<br>&lt;H1 align=center&gt;&lt;FONT color=#ff3333&gt;Agnosis&lt;/FONT&gt;&lt;/H1&gt;<br>&lt;TABLE align=center border=0&gt;<br> &lt;TR&gt;<br> &lt;TD&gt;<br> &lt;P&gt;<br> &lt;B&gt;A&lt;/B&gt;GNOSIS feliz<br> &lt;BR/&gt;<br> &lt;B&gt;G&lt;/B&gt;racias al ciego destino<br> &lt;BR/&gt;<br> &lt;B&gt;N&lt;/B&gt;ada es constante<br> &lt;BR/&gt;<br> &lt;B&gt;O&lt;/B&gt;lvidados por el Hado<br> &lt;BR/&gt;<br> &lt;B&gt;S&lt;/B&gt;i &Eacute;l existe<br> &lt;BR/&gt;<br> &lt;B&gt;I&lt;/B&gt;ncomprensible y eterno<br> &lt;BR/&gt;<br> &lt;B&gt;S&lt;/B&gt;ilencio <br> &lt;/P&gt;<br> &lt;/TD&gt;<br> &lt;/TR&gt;<br>&lt;/TABLE&gt;<br>&lt;br/&gt;<br>&lt;/span&gt;</pre>
<br>
Border.html
<pre>&lt;html jwcid=&quot;@Shell&quot; title=&quot;RenderBody Example&quot;&gt;<br> &lt;body jwcid=&quot;@Body&quot;&gt;<br> &lt;table width=&quot;100%&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;&gt;<br> &lt;tr&gt;<br> &lt;td valign=&quot;top&quot; style=&quot;text-align:justify;&quot;&gt;<br> &lt;span jwcid=&quot;@<a href="RenderBody.html">RenderBody</a>&quot;&gt;Page content goes here.&lt;/span&gt;<br> &lt;/td&gt;<br> &lt;/tr&gt;<br> &lt;tr&gt;<br> &lt;td valign=&quot;bottom&quot;&gt;<br> &lt;table width=&quot;100%&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;&gt;<br> &lt;tr&gt;<br> &lt;td align=&quot;center&quot;&gt;<br> &lt;a href=&quot;http://jakarta.apache.org/tapestry&quot;&gt;&lt;img src=&quot;images/poweredbyTapestry.gif&quot; width=&quot;79&quot; height=&quot;33&quot; border=&quot;0&quot; alt=&quot;Tapestry&quot;&gt;&lt;/a&gt;<br> &lt;br/&gt;<br> &lt;br/&gt;<br> &lt;/td&gt;<br> &lt;/tr&gt;<br> &lt;/table&gt;<br> &lt;/td&gt;<br> &lt;/tr&gt;<br> &lt;/table&gt;<br> &lt;/body&gt;<br>&lt;/html&gt;</pre>
<br>
Border.jwc
<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;!DOCTYPE component-specification<br> PUBLIC &quot;-//Apache Software Foundation//Tapestry Specification 3.0//EN&quot;<br> &quot;http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd&quot;&gt;<br>
&lt;component-specification allow-body=&quot;yes&quot; allow-informal-parameters=&quot;no&quot;&gt;<br>&lt;/component-specification&gt;<br>
</pre>
</td>
</tr></table>
</td></tr>
<tr>
<td colspan="3"><hr></td>
</tr>
<tr>
<td align="left"><A href="RenderBlock.html"><IMG alt=RenderBlock src="common-images/prev.png"></A></td>
<td align="middle"><A href="index.html"><IMG alt="Component Index" src="common-images/home.png" ></A></td>
<td align="right"><A href="Rollover.html"><IMG alt=Rollover src="common-images/next.png"></A></td>
</tr>
</table>
</body>
</html>