gaojiewyh 发表于 2013-2-6 08:43:53

JSF中的隐含对象

JSF中的隐含对象   
applicationScope:整个应用域,相当于JSP中的application
cookie:Cookie中资料,相当于JSP中的cookie
facesContext:JSF中的FacesContext对象,可以通过它来访问其它对象
header:当前Request的Http header的Map
headerValues:当前Request中所有的Http header的Map
initParam:当前应用的初始化参数的Map
param:请求参数的Map ,获取url中的参数
paramValues:当前参数的Map
requestScope:当前请求,相当于JSP中的request
sessionScope:Session的Map,相当于JSP中的session
view: 当前view
 
<ui:include src="http://#{header['host']}/templates/#{initParam['template']}/body.xhtml" />
页: [1]
查看完整版本: JSF中的隐含对象