Package com.webmethods.caf.faces.portlet
Class PortletLifecycle
java.lang.Object
javax.faces.lifecycle.Lifecycle
com.webmethods.caf.faces.portlet.PortletLifecycle
PortletLifecycle
manages the processing of the entire lifecycle
of a particular PortletRequest
.
An instance of PortletLifecycle
is created by calling the
PortletLifecycleFactory.getLifecycle(String)
method, for a specified
lifecycle identifier.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
Context initialization parameter under which the application may specify an initial view identifier to be displayed.static final String
static final String
static final String
static final String
Init param name which nees to be set to true if portlet is completely rendered in the minimized state but just not getting displayed.static final String
static final String
static final String
Init param name which nees to be set to true if view state caching should be done in the session as opposed to default pageflow storage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPhaseListener
(PhaseListener listener) Register a new PhaseListener instance that is interested in being notified before and after the processing for standard phases of the request processing lifecycle.protected void
copyDeferredMessages
(FacesContext context, boolean action, javax.portlet.PortletRequest request, com.webmethods.caf.faces.portlet.FacesPortletState state) void
execute
(FacesContext context) Execute all of the phases of the request processing lifecycle, up to but not including the Render Response phase in the specified order.protected String
Return the set of PhaseListeners that have been registered.void
removePhaseListener
(PhaseListener listener) Remove a registered PhaseListener from the set of registered listenersvoid
render
(FacesContext context) Execute the Render Response phase.Methods inherited from class javax.faces.lifecycle.Lifecycle
attachWindow
-
Field Details
-
REQ_ATTR_FORCE_POSTBACK
- See Also:
-
TARGET_VIEW_REQ_PARAM
- See Also:
-
PORTLET_LIFECYCLE_ID
- See Also:
-
PORTLET_VIEW_ID
- See Also:
-
PORTLET_SKIP_SAVE_WINDOW_STATE
- See Also:
-
INITIAL_VIEW_FOR_PORTLET_MODE_INIT_PARAM_PREFIX
Context initialization parameter under which the application may specify an initial view identifier to be displayed.
- See Also:
-
INIT_VIEW_PARAMETER
-
RENDER_WHEN_MINIMIZED
Init param name which nees to be set to true if portlet is completely rendered in the minimized state but just not getting displayed. By default portlet is not rendered in the minimized state. The primary reason to override this is when portlet includes some other portlets which state is important to keep if the parent portlet is minimized- See Also:
-
VIEW_CACHE_SESSION
Init param name which nees to be set to true if view state caching should be done in the session as opposed to default pageflow storage- See Also:
-
-
Constructor Details
-
PortletLifecycle
public PortletLifecycle()
-
-
Method Details
-
addPhaseListener
Register a new PhaseListener instance that is interested in being notified before and after the processing for standard phases of the request processing lifecycle.- Specified by:
addPhaseListener
in classLifecycle
- Parameters:
listener
- ThePhaseListener
to be registered- Throws:
NullPointerException
- if listener is null
-
execute
Execute all of the phases of the request processing lifecycle, up to but not including the Render Response phase in the specified order.- Specified by:
execute
in classLifecycle
- Parameters:
context
- FacesContext for the request to be processed- Throws:
FacesException
- if thrown during the execution of the request processing lifecycleNullPointerException
- if context is null
-
getPhaseListeners
Return the set of PhaseListeners that have been registered.- Specified by:
getPhaseListeners
in classLifecycle
-
render
Execute the Render Response phase.- Specified by:
render
in classLifecycle
- Parameters:
context
- FacesContext for the request being processed- Throws:
FacesException
- if an exception is thrown during the execution of the request processing lifecycleNullPointerException
- if context is null
-
removePhaseListener
Remove a registered PhaseListener from the set of registered listeners- Specified by:
removePhaseListener
in classLifecycle
-
copyDeferredMessages
protected void copyDeferredMessages(FacesContext context, boolean action, javax.portlet.PortletRequest request, com.webmethods.caf.faces.portlet.FacesPortletState state) -
findTargetViewRequestParamValue
-