java.lang.Objectjavax.faces.context.FacesContext
FacesContext contains all of the per-request state information related to the processing of a single JavaServer Faces request, and the rendering of the corresponding response. It is passed to, and potentially modified by, each phase of the request processing lifecycle.
A FacesContext instance is associated with a particular
request at the beginning of request processing, by a call to the
getFacesContext() method of the FacesContextFactory
instance associated with the current web application. The instance
remains active until its release() method is called, after
which no further references to this instance are allowed. While a
FacesContext instance is active, it must not be referenced
from any thread other than the one upon which the servlet container
executing this web application utilizes for the processing of this request.
| Method from javax.faces.context.FacesContext Summary: |
|---|
| addMessage, getApplication, getClientIdsWithMessages, getCurrentInstance, getELContext, getExternalContext, getMaximumSeverity, getMessages, getMessages, getRenderKit, getRenderResponse, getResponseComplete, getResponseStream, getResponseWriter, getViewRoot, release, renderResponse, responseComplete, setCurrentInstance, setResponseStream, setResponseWriter, setViewRoot |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.faces.context.FacesContext Detail: |
|---|
Append a javax.faces.application.FacesMessage to the set of messages associated with
the specified client identifier, if |
Return the Application instance associated with this web application. |
Return an |
Return the FacesContext instance for the request that is being processed by the current thread, if any. |
Return the The default implementation throws
|
Return the ExternalContext instance for this
|
Return the maximum severity level recorded on any
javax.faces.application.FacesMessage s that has been queued, whether or not they are
associated with any specific UIComponent . If no such messages
have been queued, return |
Return an |
Return an |
Return the RenderKit instance for the render kit identifier
specified on our UIViewRoot , if there is one. If there is no
current UIViewRoot , if the UIViewRoot does not have a
specified |
Return |
Return |
Return the ResponseStream to which components should direct their binary output. Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both. |
Return the ResponseWriter to which components should direct their character-based output. Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both. |
Return the root component that is associated with the this request. |
Release any resources associated with this
The implementation must call #setCurrentInstance
passing |
Signal the JavaServer faces implementation that, as soon as the current phase of the request processing lifecycle has been completed, control should be passed to the Render Response phase, bypassing any phases that have not been executed yet. |
Signal the JavaServer Faces implementation that the HTTP response for this request has already been generated (such as an HTTP redirect), and that the request processing lifecycle should be terminated as soon as the current phase is completed. |
Set the FacesContext instance for the request that is being processed by the current thread. |
Set the ResponseStream to which components should direct their binary output. |
Set the ResponseWriter to which components should direct their character-based output. |
Set the root component that is associated with this request. This method can only be called by the application handler (or a class that the handler calls), and only during the Invoke Application phase of the request processing lifecycle. |