Esempio n. 1
0
		public static ServletFacesContext GetFacesContext (FacesContextFactory facesContextFactory,
																	ServletContext servletContext,
																	ServletRequest servletRequest,
																	ServletResponse servletResponse,
																	Lifecycle lifecycle,
																	HttpContext httpContext,
																	string executionFilePath) {
			FacesContext oldFacesContex = FacesContext.getCurrentInstance ();
			FacesContext wrappedFacesContex = facesContextFactory.getFacesContext (servletContext, servletRequest, servletResponse, lifecycle);
			ExternalContext externalContext = new ServletExternalContext (wrappedFacesContex.getExternalContext (), httpContext, executionFilePath);
			ServletFacesContext context = new ServletFacesContext (wrappedFacesContex, externalContext, httpContext, oldFacesContex);
			return context;
		}
Esempio n. 2
0
        public static ServletFacesContext GetFacesContext(FacesContextFactory facesContextFactory,
                                                          ServletContext servletContext,
                                                          ServletRequest servletRequest,
                                                          ServletResponse servletResponse,
                                                          Lifecycle lifecycle,
                                                          HttpContext httpContext,
                                                          string executionFilePath)
        {
            FacesContext        oldFacesContex     = FacesContext.getCurrentInstance();
            FacesContext        wrappedFacesContex = facesContextFactory.getFacesContext(servletContext, servletRequest, servletResponse, lifecycle);
            ExternalContext     externalContext    = new ServletExternalContext(wrappedFacesContex.getExternalContext(), httpContext, executionFilePath);
            ServletFacesContext context            = new ServletFacesContext(wrappedFacesContex, externalContext, httpContext, oldFacesContex);

            return(context);
        }