public class PortletViewHandler
extends com.sun.faces.application.view.MultiViewHandler
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.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 and Description |
---|
PortletViewHandler() |
Modifier and Type | Method and Description |
---|---|
Locale |
calculateLocale(FacesContext ctx)
Returns an appropriate
Locale to use for this and subsequent
requests for the current client. |
protected String |
convertViewId(FacesContext context,
String viewId) |
String |
getActionURL(FacesContext context,
String viewId)
Return a URL suitable for rendering that selects the specified view
identifier.
|
addProtectedView, addViewParameters, calculateRenderKitId, createView, deriveLogicalViewId, derivePhysicalViewId, deriveViewId, findMatch, getBookmarkableURL, getFullParameterList, getProtectedViewsUnmodifiable, getRedirectURL, getResourceURL, getViewDeclarationLanguage, initView, normalizeRequestURI, removeProtectedView, renderView, restoreView, send404Error, writeState
calculateCharacterEncoding
protected String convertViewId(FacesContext context, String viewId)
convertViewId
in class com.sun.faces.application.view.MultiViewHandler
public String getActionURL(FacesContext context, String viewId)
getActionURL
in class com.sun.faces.application.view.MultiViewHandler
context
- FacesContext
for this requestviewId
- View identifier of the desired viewpublic Locale calculateLocale(FacesContext ctx)
Locale
to use for this and subsequent
requests for the current client.calculateLocale
in class com.sun.faces.application.view.MultiViewHandler
ctx
- FacesContext
for the current request