web.xml的一些经典配置

1、加载richfaces皮肤
<context-param>
        <param-name>org.richfaces.SKIN</param-name>
  <!--<param-value>glassX</param-value>-->//richfaces默认的皮肤
        <param-value>common</param-value> //自己定义的皮肤
</context-param>

2、加载自定义组件
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>/WEB-INF/myTag.taglib.xml</param-value>
</context-param>

3、设置ajax4jsf的缓存时间
<context-param>
<param-name>org.ajax4jsf.DEFAULT_EXPIRE</param-name>
<param-value>31536000</param-value> //一年
</context-param>

4、加载所有的richfaces脚本
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>ALL</param-value>
</context-param>

5、关闭seam的调试模式
<context-param>
<param-name>org.jboss.seam.core.init.debug</param-name>
<param-value>false</param-value>
</context-param>

你可能感兴趣的:(Web,xml,jboss,Richfaces,seam)