|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.faces.webflow.FacesContextHelper
public class FacesContextHelper
Provides helper methods for getting a FacesContext that is suitable for use outside of Web Flow. Inside a running
Flow session FlowFacesContext
is typically used instead.
Constructor Summary | |
---|---|
FacesContextHelper()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FacesContextHelper()
Method Detail |
---|
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 response
FacesContext
instance.release
public void releaseIfNecessary()
obtained
FacesContext
if necessary.
getFacesContext(Object, Object, Object)
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 lifecycle
FacesContext
instance
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |