Package com.webmethods.caf.faces.portlet
Class PortletViewHandler
java.lang.Object
javax.faces.application.ViewHandler
com.sun.faces.application.view.MultiViewHandler
com.webmethods.caf.faces.portlet.PortletViewHandler
public class PortletViewHandler
extends com.sun.faces.application.view.MultiViewHandler
Portlet view handler extends XMLViewHandler by providing custom
getActionURL(javax.faces.context.FacesContext, java.lang.String)
method implementation to pass current viewId
on the action url as a parameter.
This handler is safe to use outside a portlet environment since it
validates this and delegates to the parent.-
Field Summary
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, DISABLE_FACELET_JSF_VIEWHANDLER_PARAM_NAME, FACELETS_BUFFER_SIZE_PARAM_NAME, FACELETS_DECORATORS_PARAM_NAME, FACELETS_LIBRARIES_PARAM_NAME, FACELETS_REFRESH_PERIOD_PARAM_NAME, FACELETS_SKIP_COMMENTS_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an appropriateLocale
to use for this and subsequent requests for the current client.protected String
convertViewId
(FacesContext context, String viewId) getActionURL
(FacesContext context, String viewId) Return a URL suitable for rendering that selects the specified view identifier.Methods inherited from class com.sun.faces.application.view.MultiViewHandler
addProtectedView, addViewParameters, calculateRenderKitId, createView, deriveLogicalViewId, derivePhysicalViewId, deriveViewId, findMatch, getBookmarkableURL, getFullParameterList, getProtectedViewsUnmodifiable, getRedirectURL, getResourceURL, getViewDeclarationLanguage, getViews, getViews, getWebsocketURL, initView, normalizeRequestURI, removeProtectedView, renderView, restoreView, send404Error, writeState
Methods inherited from class javax.faces.application.ViewHandler
calculateCharacterEncoding
-
Constructor Details
-
PortletViewHandler
public PortletViewHandler()
-
-
Method Details
-
convertViewId
- Overrides:
convertViewId
in classcom.sun.faces.application.view.MultiViewHandler
-
getActionURL
Return a URL suitable for rendering that selects the specified view identifier.- Overrides:
getActionURL
in classcom.sun.faces.application.view.MultiViewHandler
- Parameters:
context
-FacesContext
for this requestviewId
- View identifier of the desired view
-
calculateLocale
Returns an appropriateLocale
to use for this and subsequent requests for the current client.- Overrides:
calculateLocale
in classcom.sun.faces.application.view.MultiViewHandler
- Parameters:
ctx
-FacesContext
for the current request
-