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
|
|
|
<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>
|