ï»??xml version="1.0" encoding="utf-8" standalone="yes"?>粉嫩精品一区二区三区在线观看,日韩亚洲国产免费,欧美亚洲色图校园春色http://www.aygfsteel.com/zhaijianhui/category/15184.html研究java技æœ?/description>zh-cnFri, 09 Mar 2007 11:07:42 GMTFri, 09 Mar 2007 11:07:42 GMT60Tiles support in MyFaces http://www.aygfsteel.com/zhaijianhui/archive/2006/09/25/71629.html蜘蛛蜘蛛Sun, 24 Sep 2006 21:39:00 GMThttp://www.aygfsteel.com/zhaijianhui/archive/2006/09/25/71629.htmlhttp://www.aygfsteel.com/zhaijianhui/comments/71629.htmlhttp://www.aygfsteel.com/zhaijianhui/archive/2006/09/25/71629.html#Feedback0http://www.aygfsteel.com/zhaijianhui/comments/commentRss/71629.htmlhttp://www.aygfsteel.com/zhaijianhui/services/trackbacks/71629.htmlTiles support
For better struts/tiles support, myfaces has an integrated JspTilesViewHandler (since release 1.0.6 bate). The main advantage of the ViewHandler is, that tiles-definitions can be sourced out into xml files (up to now using tiles and myfaces you had to definie the layout within jsp-pages).

Have a look at the tiles-webapp example.

Steps to implement a myfaces-tiles application:


1) configure the JspTilesViewHandler in your faces-config:
<application>
   <view-handler>net.sourceforge.myfaces.application.jsp.JspTilesViewHandlerImpl</view-handler>
</application>

2) add the following lines to your web.xml
<context-param>
   <param-name>tiles-definitions</param-name>
   <param-value>/WEB-INF/tiles.xml</param-value>
</context-param>

3) define your layout in a tiles-definition file (sample from the tiles-webapp).

When rendering the view, the JspTilesViewHandlerImpl will take the given viewId and compute a tileId by
  • substituting any extension by ".tiles"
  • appending ".tiles" if path-mapping is used
Next the ViewHanlder looks up in the tile-definitions for the corresponding definition.
(eg. for viewId = /page1.jsp the lookup would be /page1.tiles)

By the way, the JspTilesViewHandlerImpl is part of the myfaces-components. So someone could use it with Sun's RI too.
==================================================================
<!DOCTYPE tiles-definitions PUBLIC
 "-//Apache Software Foundation//DTD Tiles Configuration//EN"
 "http://jakarta.apache.org/struts/dtds/tiles-config.dtd">

<tiles-definitions>
   <definition name="layout.example" path="/template/template.jsp" >
       <put name="header" value="/common/header.jsp" />
       <put name="menu" value="/common/navigation.jsp" />
   </definition>

   <definition name="/page1.tiles" extends="layout.example" >
       <put name="body" value="/page1.jsp" />
   </definition>

   <definition name="/page2.tiles" extends="layout.example" >
       <put name="body" value="/page2.jsp" />
   </definition>

</tiles-definitions>


http://www.marinschek.com/myfaces/tiki/tiki-index.php?page=Features

]]>
Ö÷Õ¾Ö©Öë³ØÄ£°å£º ÓÀµÇÏØ| вÌÏØ| ºéÑÅÏØ| ÈÊÊÙÏØ| ¶¨Ô¶ÏØ| °ØÏçÏØ| Çø¡£| ÍòÔØÏØ| ¶¨½áÏØ| ÔóÆÕÏØ| ¹ãÁéÏØ| °¢³ÇÊÐ| ÆîÑôÏØ| °ÍÑåÄ×¶ûÊÐ| ÕÑͨÊÐ| ̨ÖÐÊÐ| Ì«±£ÊÐ| ʯÚäÏØ| ÓãÌ¨ÏØ| ÓÀÐÞÏØ| Ë«½­| ¿Æ¼¼| ½­°²ÏØ| ºÓ±±Çø| ¡°²ÏØ| ÖÐÑôÏØ| »ô³ÇÏØ| ÓÚ¶¼ÏØ| Ë®¸»ÏØ| Äþ½úÏØ| ÂåÑôÊÐ| µ¤·ïÏØ| ±¦Ó¦ÏØ| ÔÇÎ÷ÏØ| ¶àÂ×ÏØ| ½ðÏªÏØ| ÎäÒÄɽÊÐ| ÁùÖ¦ÌØÇø| µÂÁî¹þÊÐ| °à¸êÏØ| ÂÔÑôÏØ|