jsf2.0 tomcat 修改頁面後無法立馬看到頁面修改效果

流水無情88發表於2013-09-16

轉載於  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了。記載下來供下次使用。

相關文章