public void setExternalContext(ReleaseableExternalContext extContext) { _externalContext = extContext; FacesContext.setCurrentInstance(this); //TODO: figure out if I really need to do this }
@Override public void release() { FacesContext.setCurrentInstance(null); }
/** * Base constructor. * Calls FacesContext.setCurrentInstance(this); */ public FacesContextImplBase(final ExternalContext externalContext, final ReleaseableExternalContext defaultExternalContext) { _externalContext = externalContext; _defaultExternalContext = defaultExternalContext; // this FacesContext impl is now the current instance // note that because this method is protected, it has to be called from here FacesContext.setCurrentInstance(this); }
public static void setCurrentInstance(FacesContext context) { FacesContext.setCurrentInstance(context); }
/** * Sets the current context of {@link FacesContext}. * * @param context * the current context of {@link FacesContext}. */ public static void setCurrentInstance(FacesContext context) { FacesContext.setCurrentInstance(context); }
/** * <p>Set the <code>FacesContext</code> instance for this instance.</p> * * @param facesContext The new FacesContext */ public static void setCurrentInstance(FacesContext facesContext) { FacesContext.setCurrentInstance(facesContext); }
/** * <p>Set the <code>FacesContext</code> instance for this instance.</p> * * @param facesContext The new FacesContext */ public static void setCurrentInstance(FacesContext facesContext) { FacesContext.setCurrentInstance(facesContext); }
/** * Sets the current context of {@link FacesContext}. * * @param context * the current context of {@link FacesContext}. */ public static void setCurrentInstance(FacesContext context) { FacesContext.setCurrentInstance(context); }
/** * <p>Set the <code>FacesContext</code> instance for this instance.</p> * * @param facesContext The new FacesContext */ public static void setCurrentInstance(FacesContext facesContext) { FacesContext.setCurrentInstance(facesContext); }
public FacesContextImplBase(final ExternalContext externalContext, final ReleaseableExternalContext defaultExternalContext, final ApplicationFactory applicationFactory, final RenderKitFactory renderKitFactory) { _externalContext = externalContext; _defaultExternalContext = defaultExternalContext; _applicationFactory = applicationFactory; _renderKitFactory = renderKitFactory; // this FacesContext impl is now the current instance // note that because this method is protected, it has to be called from here FacesContext.setCurrentInstance(this); }
protected static void setCurrentInstance(FacesContext context) { FacesContext.setCurrentInstance(context); } }
/** * Base constructor. * Calls FacesContext.setCurrentInstance(this); */ public FacesContextImplBase(final ExternalContext externalContext, final ReleaseableExternalContext defaultExternalContext) { _externalContext = externalContext; _defaultExternalContext = defaultExternalContext; // this FacesContext impl is now the current instance // note that because this method is protected, it has to be called from here FacesContext.setCurrentInstance(this); }
/** * Base constructor. * Calls FacesContext.setCurrentInstance(this); */ public FacesContextImplBase(final ExternalContext externalContext, final ReleaseableExternalContext defaultExternalContext) { _externalContext = externalContext; _defaultExternalContext = defaultExternalContext; // this FacesContext impl is now the current instance // note that because this method is protected, it has to be called from here FacesContext.setCurrentInstance(this); }
protected static void setFacesContextAsCurrentInstance(FacesContext facesContext) { FacesContext.setCurrentInstance(facesContext); } }
protected static void setFacesContextAsCurrentInstance(FacesContext facesContext) { FacesContext.setCurrentInstance(facesContext); } }
public PortletFacesContextImpl(ExternalContext externalContext) { this.externalContext = externalContext; this.application = ApplicationUtil.getApplicationFromFactory(); FacesContext.setCurrentInstance(this); }
public RedirectTrackerFacesContextWrapper(final FacesContext facesContext) { super(facesContext); externalContextWrappper = new RedirectTrackerExternalContextWrapper(facesContext.getExternalContext()); FacesContext.setCurrentInstance(this); }
public void release() { released = true; application = null; if (externalContext instanceof Releaseable) { ((Releaseable) externalContext).release(); } externalContext = null; FacesContext.setCurrentInstance(null); }
public void setExternalContext(ExternalContext externalContext) { assertNotReleased(); this.externalContext = externalContext; //TODO this code is needed Portlet render method. needs to review FacesContext handling.. FacesContext.setCurrentInstance(this); }
public PortletFacesContextImpl(ExternalContext externalContext, Lifecycle lifecycle) throws FacesException { mApplication = ((ApplicationFactory) FactoryFinder .getFactory(FactoryFinder.APPLICATION_FACTORY)) .getApplication(); mRenderKitFactory = (RenderKitFactory) FactoryFinder .getFactory(FactoryFinder.RENDER_KIT_FACTORY); mExternalContext = externalContext; FacesContext.setCurrentInstance(this); }