ציטוט Vinicius Carvalho:
Hum ok. So content shall be my page with components and other stuff?
if you use this layout often, why not create a second "border" component, say LayoutX, where content (in my prev. post) is @RenderBody, and then your page looks like

<span jwcid="@LayoutX">
content
</span>


On 6/7/05, Ron Piterman <[EMAIL PROTECTED]> wrote:

<span jwcid="@Border">
 <span jwcid="@TabPanel">
   content
 </span>
</span>

ציטוט Vinicius Carvalho:

Well, I'm still confused with this...
I followed Ron help and end up with this:

Border.html
<body jwcid="@Body" topmargin="0" bottommargin="0" leftmargin="0"
rightmargin="0" >
<table width="100%" cellpadding="0" cellspacing="0">
     <tr>
             <td bgcolor="#6699cc" width="25%">
             <TABLE cellSpacing=1 cellPadding=1 width="100%" border=0>
                     <TR>
                             <TD><a jwcid="@PageLink" page="Start" 
parameters="Start">Start</a></TD>
                     </TR>
                     <TR>
                             <TD><a jwcid="@PageLink" page="Digest"
parameters="Digest">Gerenciar Digest</a></TD>
                     </TR>
             </TABLE>
             </td>
             <td width="1"></td>
             <td width="75%" valign="top"><span jwcid="@RenderBody"/></td>
     </tr>
</table>
</body>
</html>

Border.jwc
<component-specification class="org.apache.tapestry.BaseComponent"
allow-body="yes" allow-informal-parameters="no">
</component-specification>

<span jwcid="@Border">
     <span jwcid="@TabPanel" blockNames="ognl:user.groupList">
     </span>
</span>

TabPanel.html
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
     <td>
             <table cellspacing="0" width="100%" border="0">
           <tr>
                             <span jwcid="[EMAIL PROTECTED]" 
source="ognl:blockNames"
value="ognl:currentBlock">
               <td jwcid="@Any" element="td" align="center" bgcolor="#8080FF">
                   <span jwcid="@Insert" value="ognl:currentBlock"></span>
               </td>
                             <td width="1"></td>
               </span>
                     </tr>
             </table>
     </td>
</tr>
<tr>
     <td width="100%" height="100%'"><span jwcid="@RenderBody"/></td>
</tr>
</table>

Here's where I got lost ...
How do I create pages (examples, category.page) which are gonna be
rendered insied the second @RenderBody?
I tried the Block example at tapestry reference, but how do I set the
Block contents to be a page? or a component?

Thanks all

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to