posts - 2,  comments - 2,  trackbacks - 0

在做一个网站时,我们通常要做一个框架,以后的内容都在框架里展现,这就需要RednderBody了,如下:
//使用了Border这个直定义的组件(Border.html; Border.jwc; Border.java)
<span jwcid="@Border">
<TABLE align=center border=0>
   <TR>
      <TD>这是嵌入页面</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>在这里开始</td>
         </tr>
         <tr>
           <td>
              <span jwcid="@RenderBody">Page content goes here.</span>
           </td>
        </tr>
        <tr>
           <td>在这里结束</td>
        </tr>
     </table>
  </body>
</html>
最后的结果是:
<html jwcid="@Shell" title="RenderBody Example">
   <body jwcid="@Body">
      <table width="100%" cellspacing="0" border="0">
         <tr>
           <td>在这里开始</td>
         </tr>
         <tr>
           <td>
          
<TABLE align=center border=0>
           <TR>
              <TD>这是嵌入页面</TD>
           </TR>
        </TABLE>
        
<br/>

           </td>
        </tr>
        <tr>
           <td>在这里结束</td>
        </tr>
     </table>
  </body>
</html>

posted on 2006-01-27 22:58 yyp 阅读(857) 评论(0)  编辑  收藏 所属分类: Tapestry

只有注册用户登录后才能发表评论。


网站导航:
 
<2006年1月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
2930311234

常用链接

留言簿(1)

随笔分类

随笔档案

文章档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜