سؤال

We have an existing application (JSF 1.2), packaged as an ear, running on JBoss 4.2. We use JRebel, and to be able to automatically detect changes in our xhtml files we needed to disable caching for Facelets by adding this to our web.xml:

<context-param>
    <param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
    <param-value>0</param-value>
</context-param>

I would however prefer if this parameter could be done directly on the JBoss server, is this possible? If so, where do I configure this?

هل كانت مفيدة؟

المحلول

Add it to /deploy/jboss-web.deployer/conf/web.xml the same way as you would do in webapp's own /WEB-INF/web.xml.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top