java.lang.ObjectConvenience methods to retrieve the root WebApplicationContext for a given FacesContext. This is e.g. useful for accessing a Spring context from custom JSF code.org.springframework.web.jsf.FacesContextUtils
Analogous to Spring's WebApplicationContextUtils for the ServletContext.
Juergen - Hoeller1.1 - | Method from org.springframework.web.jsf.FacesContextUtils Summary: |
|---|
| getRequiredWebApplicationContext, getSessionMutex, getWebApplicationContext |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.web.jsf.FacesContextUtils Detail: |
|---|
Will rethrow an exception that happened on root context startup, to differentiate between a failed context startup and no context at all. |
Returns the session mutex attribute if available; usually,
this means that the HttpSessionMutexListener needs to be defined
in The session mutex is guaranteed to be the same object during
the entire lifetime of the session, available under the key defined
by the In many cases, the Session reference itself is a safe mutex as well, since it will always be the same object reference for the same active logical session. However, this is not guaranteed across different servlet containers; the only 100% safe way is a session mutex. |
Will rethrow an exception that happened on root context startup, to differentiate between a failed context startup and no context at all. |