gpt4 book ai didi

com.sun.faces.config.WebConfiguration.overrideContextInitParameter()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 06:51:05 25 4
gpt4 key购买 nike

本文整理了Java中com.sun.faces.config.WebConfiguration.overrideContextInitParameter()方法的一些代码示例,展示了WebConfiguration.overrideContextInitParameter()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebConfiguration.overrideContextInitParameter()方法的具体详情如下:
包路径:com.sun.faces.config.WebConfiguration
类名称:WebConfiguration
方法名:overrideContextInitParameter

WebConfiguration.overrideContextInitParameter介绍

暂无

代码示例

代码示例来源:origin: org.glassfish.main.web/jsf-connector

LOGGER.fine("setting the EnableAgressiveSessionDirtying to true");
config.overrideContextInitParameter(WebConfiguration.BooleanWebContextInitParameter.EnableAgressiveSessionDirtying,
    Boolean.TRUE);

代码示例来源:origin: org.glassfish/jakarta.faces

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);
  }
}

代码示例来源:origin: com.sun.faces/jsf-impl

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);
  }
}

代码示例来源:origin: org.glassfish/javax.faces

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);
  }
}

代码示例来源:origin: com.sun.faces/jsf-impl

webconfig.overrideContextInitParameter(DisableFaceletJSFViewHandler, isFaceletsDisabled);

代码示例来源:origin: org.glassfish/jakarta.faces

webconfig.overrideContextInitParameter(DisableFaceletJSFViewHandler, isFaceletsDisabled);

代码示例来源:origin: org.glassfish/javax.faces

webconfig.overrideContextInitParameter(DisableFaceletJSFViewHandler, isFaceletsDisabled);

代码示例来源:origin: asual/summer

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) {
  }
}

代码示例来源:origin: com.asual.summer/summer-core

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) {
  }
}

代码示例来源:origin: javax.faces/jsf-impl

webConfig.overrideContextInitParameter(BooleanWebContextInitParameter.EnableLazyBeanValidation, false);
Verifier.setCurrentInstance(new Verifier());

代码示例来源:origin: eclipse-ee4j/mojarra

webConfig.overrideContextInitParameter(EnableLazyBeanValidation, false);
Verifier.setCurrentInstance(new Verifier());

代码示例来源:origin: com.sun.faces/jsf-impl

webConfig.overrideContextInitParameter(EnableLazyBeanValidation, false);
Verifier.setCurrentInstance(new Verifier());

代码示例来源:origin: org.glassfish/jakarta.faces

webConfig.overrideContextInitParameter(EnableLazyBeanValidation, false);
Verifier.setCurrentInstance(new Verifier());

代码示例来源:origin: org.glassfish/javax.faces

webConfig.overrideContextInitParameter(EnableLazyBeanValidation, false);
Verifier.setCurrentInstance(new Verifier());

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com