users@javaserverfaces.java.net

WebConfiguration overrideContextInitParameter

From: Christian Landbo Frederiksen <CLFR_at_Traen.com>
Date: Thu, 29 Nov 2012 15:24:43 +0000

Using Mojarra 2.1.13

The overrideContextInitParameter does not seem to work for me.

I have tried the following in ServletContextListener but the change does not take effect.

@Override
public void contextInitialized(ServletContextEvent sce) {

WebConfiguration webConfig = WebConfiguration.getInstance(sce.getServletContext());
webConfig.overrideContextInitParameter(WebContextInitParameter.JavaxFacesProjectStage, "Development");
webConfig.overrideContextInitParameter(WebContextInitParameter.FaceletsDefaultRefreshPeriod, "1");
webConfig.overrideContextInitParameter(WebContextInitParameter.ResourceUpdateCheckPeriod, "1");

}

Can somebody guide me as to how to override these settings?