public class BasePortletPageBean extends BaseViewBean
BaseViewBean.ClientIdsContentProvider
clientIds, initialized
fExpireWithPageFlow
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
Constructor and Description |
---|
BasePortletPageBean() |
Modifier and Type | Method and Description |
---|---|
void |
beforeWorkspaceLoad(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
String navigationType)
Handle state initialization updates for a workspace load request.
|
protected void |
callInitialize()
Initializes the bean if not already done.
|
protected void |
clearNavigationState()
Clear the portlet navigation state cache.
|
protected IPortletURL |
createActionUrl()
Creates action portletUrl for the current portlet
|
protected IPortletURL |
createRenderUrl()
Creates render portletUrl for the current portlet.
|
protected BaseFacesPreferencesBean |
getActivePreferencesBean()
Returns action preferences bean.
|
protected javax.portlet.PortletPreferences |
getPreferences()
Obtains instance of the Portlet Preferences for the current portlet
|
String |
getRequestID()
Returns the request ID used to invoke reach this page.
|
void |
gotoPage(String pageURI,
boolean redirect)
Switches to the specified view page.
|
protected void |
switchToPortletMode(javax.portlet.PortletMode mode)
Switches the current portlet mode to the requested mode.
|
afterApplyRequestValues, afterInvokeApplication, afterPhase, afterProcessValidations, afterRenderResponse, afterRestoreView, afterUpdateModelValues, beforeApplyRequestValues, beforeInvokeApplication, beforePhase, beforeProcessValidations, beforeRenderResponse, beforeRestoreView, beforeUpdateModelValues, findComponent, findComponentInRoot, getApplicationScope, getClientIds, getPhaseId, getRealPath, getRequestParam, getRequestScope, getSessionScope, gotoPage, initialize, isAsyncRequest, preRenderResponse, release, resetPageFlowStorage, streamFileDataToResponse
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
protected BaseFacesPreferencesBean getActivePreferencesBean()
null
for pages
that are not associated with any portletprotected void switchToPortletMode(javax.portlet.PortletMode mode) throws javax.portlet.PortletModeException
mode
- the portlet mode to switch tojavax.portlet.PortletModeException
- if the requested portlet mode is not supported or allowedpublic void gotoPage(String pageURI, boolean redirect)
gotoPage
in class BaseViewBean
pageURI
- the uri of the page, for example: /portlet1/mypage.viewredirect
- true to redirect to the page, false to just change the
FacesContext view rootprotected IPortletURL createRenderUrl() throws Exception
IPortletURL
Exception
- if portlet url cannot be createdprotected IPortletURL createActionUrl() throws Exception
IPortletURL
Exception
- if portlet url cannot be createdprotected javax.portlet.PortletPreferences getPreferences() throws Exception
Exception
- if this is made outside of the PortletContextprotected void callInitialize()
BaseViewBean
callInitialize
in class BaseViewBean
public String getRequestID()
String
request ID.public void beforeWorkspaceLoad(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, String navigationType)
navigationType
- the navigation type. usually 'mws_lhs' or 'mws_tab'protected void clearNavigationState()