锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲美女中文字幕,久久亚洲精品国产精品黑人,国产成人高清亚洲一区91http://m.tkk7.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://m.tkk7.com/zhaijianhui/archive/2006/09/25/71629.html铚樿洓铚樿洓Sun, 24 Sep 2006 21:39:00 GMThttp://m.tkk7.com/zhaijianhui/archive/2006/09/25/71629.htmlhttp://m.tkk7.com/zhaijianhui/comments/71629.htmlhttp://m.tkk7.com/zhaijianhui/archive/2006/09/25/71629.html#Feedback0http://m.tkk7.com/zhaijianhui/comments/commentRss/71629.htmlhttp://m.tkk7.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

铚樿洓 2006-09-25 05:39 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 免费可以在线看A∨网站| 久久国产免费观看精品| 免费看黄视频网站| 亚洲乱码在线视频| 成人免费视频77777| 亚洲人成黄网在线观看| 成全影视免费观看大全二| 国产成人亚洲综合一区| 午夜色a大片在线观看免费| 亚洲乱亚洲乱妇24p| 免费又黄又硬又爽大片| 岛国岛国免费V片在线观看| 亚洲色无码一区二区三区| 两个人www免费高清视频| 亚洲五月综合缴情在线观看| 一级毛片aaaaaa免费看| 亚洲精品国产第1页| 午夜小视频免费观看| 男女啪啪免费体验区| 亚洲中文字幕无码永久在线| 国产99视频精品免费专区| 亚洲同性男gay网站在线观看| 成年女人18级毛片毛片免费| 免费大片av手机看片高清| 亚洲精品无码久久千人斩| 巨波霸乳在线永久免费视频| 亚洲日韩亚洲另类激情文学| 亚洲国产一区二区三区| 最近最新高清免费中文字幕| 香蕉大伊亚洲人在线观看| 亚洲国产综合精品中文字幕| 无码av免费一区二区三区| 亚洲丶国产丶欧美一区二区三区 | 国产精品亚洲午夜一区二区三区 | 国产成人精品曰本亚洲79ren| 久久精品国产这里是免费| 亚洲人成网国产最新在线| 亚洲国产成人精品女人久久久 | 麻豆视频免费播放| 黄网站色成年片大免费高清| 国产精品国产亚洲精品看不卡|