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; }
facesContext = new StartupFacesContextImpl(externalContext, (ReleaseableExternalContext) externalContext, exceptionHandler, false); for (ContextualStorage contextualStorage : oldWindowContextStorages.values())
ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, false); ExceptionHandler exceptionHandler = new ExceptionHandlerImpl(); facesContext = new StartupFacesContextImpl(externalContext, (ReleaseableExternalContext) externalContext, exceptionHandler, false); for (ViewScopeContextualStorage contextualStorage : oldWindowContextStorages.values())
ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, false); ExceptionHandler exceptionHandler = new ExceptionHandlerImpl(); facesContext = new StartupFacesContextImpl(externalContext, (ReleaseableExternalContext) externalContext, exceptionHandler, false); _viewScopeHandler.onSessionDestroyed();
ExternalContext externalContext = new StartupServletExternalContextImpl(servletContext, false); ExceptionHandler exceptionHandler = new ExceptionHandlerImpl(); facesContext = new StartupFacesContextImpl(externalContext, (ReleaseableExternalContext) externalContext, exceptionHandler, false); ViewScopeContextImpl.destroyAllActive(contextualStorage, facesContext);