LOGGER.fine("setting the EnableAgressiveSessionDirtying to true"); config.overrideContextInitParameter(WebConfiguration.BooleanWebContextInitParameter.EnableAgressiveSessionDirtying, Boolean.TRUE);
private void processViewHandlers(ServletContext servletContext, FacesContext facesContext, Application application, LinkedHashMap<String, Node> viewHandlers) { // Take special action on the ViewHandlers that have been configured for the application. // If any of the ViewHandlers is the FaceletViewHandler, don't install the 2.0 FaceletViewHandler. // Make the application behave as 1.2 unless they use our ViewHandler WebConfiguration webConfig = WebConfiguration.getInstance(); if (!webConfig.isOptionEnabled(DisableFaceletJSFViewHandler) && !webConfig.isOptionEnabled(DisableFaceletJSFViewHandlerDeprecated)) { if (viewHandlers.containsKey("com.sun.facelets.FaceletViewHandler")) { LOGGER.log(WARNING, "jsf.application.legacy_facelet_viewhandler_detected", "com.sun.facelets.FaceletViewHandler"); webConfig.overrideContextInitParameter(DisableFaceletJSFViewHandler, true); } } for (Node viewHandlerNode : viewHandlers.values()) { setViewHandler(servletContext, facesContext, application, viewHandlerNode); } }
private void processViewHandlers(ServletContext sc, Application app, LinkedHashMap<String, Node> viewHandlers) { // take special action on the ViewHandlers that have been // configured for the application. If any of the ViewHandlers // is the FaceletViewHandler, don't install the 2.0 // FaceletViewHandler. Make the application behave as 1.2 // unless they use our ViewHandler WebConfiguration webConfig = WebConfiguration.getInstance(); if (!webConfig.isOptionEnabled(DisableFaceletJSFViewHandler)) { if (viewHandlers.containsKey("com.sun.facelets.FaceletViewHandler")) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, "jsf.application.legacy_facelet_viewhandler_detected", "com.sun.facelets.FaceletViewHandler"); } webConfig.overrideContextInitParameter(DisableFaceletJSFViewHandler, true); } } for (Node n : viewHandlers.values()) { setViewHandler(sc, app, n); } }
private void processViewHandlers(ServletContext servletContext, FacesContext facesContext, Application application, LinkedHashMap<String, Node> viewHandlers) { // Take special action on the ViewHandlers that have been configured for the application. // If any of the ViewHandlers is the FaceletViewHandler, don't install the 2.0 FaceletViewHandler. // Make the application behave as 1.2 unless they use our ViewHandler WebConfiguration webConfig = WebConfiguration.getInstance(); if (!webConfig.isOptionEnabled(DisableFaceletJSFViewHandler) && !webConfig.isOptionEnabled(DisableFaceletJSFViewHandlerDeprecated)) { if (viewHandlers.containsKey("com.sun.facelets.FaceletViewHandler")) { LOGGER.log(WARNING, "jsf.application.legacy_facelet_viewhandler_detected", "com.sun.facelets.FaceletViewHandler"); webConfig.overrideContextInitParameter(DisableFaceletJSFViewHandler, true); } } for (Node viewHandlerNode : viewHandlers.values()) { setViewHandler(servletContext, facesContext, application, viewHandlerNode); } }
webconfig.overrideContextInitParameter(DisableFaceletJSFViewHandler, isFaceletsDisabled);
webconfig.overrideContextInitParameter(DisableFaceletJSFViewHandler, isFaceletsDisabled);
webconfig.overrideContextInitParameter(DisableFaceletJSFViewHandler, isFaceletsDisabled);
public FacesRenderKitImpl() { webConfig = WebConfiguration.getInstance(); String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage); if (value == null) { value = webConfig.getOptionValue(WebContextInitParameter.JavaxFacesProjectStage); } try { if (value != null) { if (ProjectStage.valueOf(value).equals(ProjectStage.Development)) { webConfig.overrideContextInitParameter(WebContextInitParameter.FaceletsDefaultRefreshPeriod, WebContextInitParameter.FaceletsDefaultRefreshPeriod.getDefaultValue()); } } } catch (IllegalArgumentException e) { } }
public FacesRenderKitImpl() { webConfig = WebConfiguration.getInstance(); String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage); if (value == null) { value = webConfig.getOptionValue(WebContextInitParameter.JavaxFacesProjectStage); } try { if (value != null) { if (ProjectStage.valueOf(value).equals(ProjectStage.Development)) { webConfig.overrideContextInitParameter(WebContextInitParameter.FaceletsDefaultRefreshPeriod, WebContextInitParameter.FaceletsDefaultRefreshPeriod.getDefaultValue()); } } } catch (IllegalArgumentException e) { } }
webConfig.overrideContextInitParameter(BooleanWebContextInitParameter.EnableLazyBeanValidation, false); Verifier.setCurrentInstance(new Verifier());
webConfig.overrideContextInitParameter(EnableLazyBeanValidation, false); Verifier.setCurrentInstance(new Verifier());
webConfig.overrideContextInitParameter(EnableLazyBeanValidation, false); Verifier.setCurrentInstance(new Verifier());
webConfig.overrideContextInitParameter(EnableLazyBeanValidation, false); Verifier.setCurrentInstance(new Verifier());
webConfig.overrideContextInitParameter(EnableLazyBeanValidation, false); Verifier.setCurrentInstance(new Verifier());