public class FacesContextHelper
extends java.lang.Object
FlowFacesContext
is typically used instead.Constructor and Description |
---|
FacesContextHelper() |
Modifier and Type | Method and Description |
---|---|
javax.faces.context.FacesContext |
getFacesContext(java.lang.Object context,
java.lang.Object request,
java.lang.Object response)
Returns a faces context that can be used outside of Web Flow.
|
static javax.faces.context.FacesContext |
newDefaultInstance(java.lang.Object context,
java.lang.Object request,
java.lang.Object response,
javax.faces.lifecycle.Lifecycle lifecycle)
Factory method that can be used to create a new default
FacesContext instance for the running
(Portlet/Servlet) environment. |
void |
releaseIfNecessary()
Release any previously
obtained FacesContext if necessary. |
public javax.faces.context.FacesContext getFacesContext(java.lang.Object context, java.lang.Object request, java.lang.Object response)
released
after use.context
- the native contextrequest
- the native requestresponse
- the native responseFacesContext
instance.release
public void releaseIfNecessary()
obtained
FacesContext
if necessary.public static javax.faces.context.FacesContext newDefaultInstance(java.lang.Object context, java.lang.Object request, java.lang.Object response, javax.faces.lifecycle.Lifecycle lifecycle)
FacesContext
instance for the running
(Portlet/Servlet) environment.context
- the native contextrequest
- the native requestresponse
- the native responselifecycle
- the JSF lifecycleFacesContext
instance