|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.context.FacesContext
javax.faces.context.FacesContextWrapper
org.apache.myfaces.orchestra.lib.jsf._PortletFacesContextWrapper
public class _PortletFacesContextWrapper
Convenient class to wrap the current FacesContext in portlet environment.
| Constructor Summary | |
|---|---|
_PortletFacesContextWrapper(javax.faces.context.FacesContext facesContext,
boolean install,
boolean finit,
String fnextToken,
List fhandlers,
RequestHandler fcontextLockHandler)
The install parameter controls whether this object will be configured as the object returned from calls to FacesContext.getCurrentInstance() or not. |
|
| Method Summary | |
|---|---|
javax.faces.context.ExternalContext |
getExternalContext()
|
javax.faces.context.FacesContext |
getWrapped()
|
void |
release()
|
| Methods inherited from class javax.faces.context.FacesContextWrapper |
|---|
addMessage, getApplication, getAttributes, getClientIdsWithMessages, getCurrentPhaseId, getELContext, getExceptionHandler, getMaximumSeverity, getMessageList, getMessageList, getMessages, getMessages, getPartialViewContext, getRenderKit, getRenderResponse, getResponseComplete, getResponseStream, getResponseWriter, getViewRoot, isPostback, isProcessingEvents, isProjectStage, isValidationFailed, renderResponse, responseComplete, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, setResponseStream, setResponseWriter, setViewRoot, validationFailed |
| Methods inherited from class javax.faces.context.FacesContext |
|---|
getCurrentInstance, setCurrentInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public _PortletFacesContextWrapper(javax.faces.context.FacesContext facesContext,
boolean install,
boolean finit,
String fnextToken,
List fhandlers,
RequestHandler fcontextLockHandler)
When only overriding the release() method, then install=false is ok as that is called directly by the FacesServlet on the instance returned by the FacesContextFactory. However all other methods are invoked on the object that is returned from FacesContext.getCurrentInstance, so install=true is needed in order for any other method overrides to have any effect.
IMPORTANT: install=true should not be used until MYFACES-1820 is fixed.
| Method Detail |
|---|
public void release()
release in class javax.faces.context.FacesContextWrapperpublic javax.faces.context.FacesContext getWrapped()
getWrapped in interface javax.faces.FacesWrapper<javax.faces.context.FacesContext>getWrapped in class javax.faces.context.FacesContextWrapperpublic javax.faces.context.ExternalContext getExternalContext()
getExternalContext in class javax.faces.context.FacesContextWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||