skin cached - changes to skin file don't affect output
pbaker01 Sep 5, 2007 7:36 PMI have a strange problem with the skin properties file. I have created a skin file and it worked fine when first loaded. However, subsequent changes to the skin properties don't affect the output.
It works fine when I change the skin properties file name and reload it. It appears as if the skin is cached somewhere. Where?
Scenario:
1) Load new skin file - works!
2) Change skin file name and then reload app - does not work
3) Change skin properties file name and reload - works!
Umm! Any suggestions will be appreciated..
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/faces-config.xml</param-value> </context-param> <context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.xhtml</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.faces</url-pattern> </servlet-mapping> <context-param> <param-name>org.ajax4jsf.SKIN</param-name> <param-value>testskin</param-value> </context-param> <context-param> <param-name>enable-cache</param-name> <param-value>false</param-value> </context-param> <filter> <display-name>Ajax4jsf Filter</display-name> <filter-name>ajax4jsf</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> </filter> <filter-mapping> <filter-name>ajax4jsf</filter-name> <servlet-name>Faces Servlet</servlet-name> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <!--Tomcat 5 Workaround: Listener used to initialize JSF on startup--> <!--Remove comment tags to enable listener. <listener> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> </listener> --> <!--Tomcat 5 Workaround: Listener implementation to handle web application lifecycle event--> <!--Remove comment tags to enable listener. <listener> <listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class> </listener> --> </web-app>