jsf2.0 tomcat 修改页面后无法立马看到页面修改效果

转载于  http://stackoverflow.com/questions/12203657/jsf2-myfaces-xhtml-modifications-do-not-affect-until-tomcat-restart

 

MyFaces uses different Facelets caching algorithms than Mojarra and does it more agressively.

You need to set the javax.faces.PROJECT_STAGE context parameter in web.xml to Development to tone it down.

<context-param>
    <param-name>javax.faces.PROJECT_STAGE</param-name>
    <param-value>Development</param-value>
</context-param>




这样以后就可以修改html页面内容不用重启tomcat了。记载下来供下次使用。
posted @ 2013-09-16 15:35  流水无情88  阅读(251)  评论(0编辑  收藏  举报