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