ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, true); FacesConfigResourceProviderFactory factory = FacesConfigResourceProviderFactory.getFacesConfigResourceProviderFactory(externalContext); FacesConfigResourceProvider provider = factory.createFacesConfigResourceProvider(externalContext);
ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, true); FacesConfigResourceProviderFactory factory = FacesConfigResourceProviderFactory. getFacesConfigResourceProviderFactory(externalContext);
private FacesContext _createFacesContext(ServletContext servletContext, boolean startup) { ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, startup); ExceptionHandler exceptionHandler = new ExceptionHandlerImpl(); FacesContext facesContext = new StartupFacesContextImpl(externalContext, (ReleaseableExternalContext) externalContext, exceptionHandler, startup); // If getViewRoot() is called during application startup or shutdown, // it should return a new UIViewRoot with its locale set to Locale.getDefault(). UIViewRoot startupViewRoot = new UIViewRoot(); startupViewRoot.setLocale(Locale.getDefault()); facesContext.setViewRoot(startupViewRoot); return facesContext; }
private FacesContext _createFacesContext(ServletContext servletContext, boolean startup) { ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, startup); ExceptionHandler exceptionHandler = new ExceptionHandlerImpl(); FacesContext facesContext = new StartupFacesContextImpl(externalContext, (ReleaseableExternalContext) externalContext, exceptionHandler, startup); // If getViewRoot() is called during application startup or shutdown, // it should return a new UIViewRoot with its locale set to Locale.getDefault(). UIViewRoot startupViewRoot = new UIViewRoot(); startupViewRoot.setLocale(Locale.getDefault()); facesContext.setViewRoot(startupViewRoot); return facesContext; }
private FacesContext _createFacesContext(ServletContext servletContext, boolean startup) { ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, startup); ExceptionHandler exceptionHandler = new ExceptionHandlerImpl(); FacesContext facesContext = new StartupFacesContextImpl(externalContext, (ReleaseableExternalContext) externalContext, exceptionHandler, startup); // If getViewRoot() is called during application startup or shutdown, // it should return a new UIViewRoot with its locale set to Locale.getDefault(). UIViewRoot startupViewRoot = new UIViewRoot(); startupViewRoot.setLocale(Locale.getDefault()); facesContext.setViewRoot(startupViewRoot); return facesContext; }
ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, false); ExceptionHandler exceptionHandler = new ExceptionHandlerImpl(); facesContext = new StartupFacesContextImpl(externalContext,
ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, false); ExceptionHandler exceptionHandler = new ExceptionHandlerImpl(); facesContext = new StartupFacesContextImpl(externalContext,
ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, false); ExceptionHandler exceptionHandler = new ExceptionHandlerImpl(); facesContext = new StartupFacesContextImpl(externalContext,
ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, false); ExceptionHandler exceptionHandler = new ExceptionHandlerImpl(); facesContext = new StartupFacesContextImpl(externalContext,