| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright 2004, 2005 The Apache Software Foundation |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <document> |
| <properties> |
| <title>RenderBody</title> |
| </properties> |
| <body> |
| |
| <section name="RenderBody"> |
| |
| <p> |
| 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 RenderBody component in their template. |
| </p> |
| <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="../link/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> |
| <strong>See also:</strong> |
| <a href="block.html">Block</a> |
| , |
| <a href="insert.html">Insert</a> |
| , |
| <a href="renderblock.html">RenderBlock</a> |
| , |
| <a href="inserttext.html">InsertText</a> |
| </p> |
| |
| <section name="Parameters"> |
| <table> |
| <tr> |
| <td>None</td> |
| </tr> |
| </table> |
| |
| <p> |
| Body: |
| <strong>removed</strong> |
| </p> |
| |
| <p> |
| Informal parameters: |
| <strong>forbidden</strong> |
| </p> |
| |
| <p> |
| Reserved parameters: |
| <em>none</em> |
| </p> |
| |
| </section> |
| |
| <section name="Examples"> |
| |
| <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> |
| <img src="../../images/ComponentReference/RenderBody.png" |
| alt="RenderBody Screen Shot" /> |
| <p>Template</p> |
| <source xml:space="preserve"> |
| <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 El existe |
| <BR/> |
| <B>I</B>ncomprensible y eterno |
| <BR/> |
| <B>S</B>ilencio |
| </P> |
| </TD> |
| </TR> |
| </TABLE> |
| <br/> |
| </span> |
| </source> |
| <p>Border.html</p> |
| <source xml:space="preserve"> |
| <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> |
| </source> |
| <p>Border.jwc</p> |
| <source xml:space="preserve"> |
| ..... |
| <component-specification allow-body="yes" allow-informal-parameters="no"> |
| </component-specification> |
| ..... |
| </source> |
| </section> |
| |
| </section> |
| |
| </body> |
| </document> |