public class PortletViewHandler extends ViewHandlerWrapper
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.Modifier and Type | Field and Description |
---|---|
protected ViewHandler |
wrapped |
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(ViewHandler parent) |
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. |
String |
getActionURL(FacesContext context,
String viewId)
Return a URL suitable for rendering that selects the specified view
identifier.
|
ViewHandler |
getWrapped() |
addProtectedView, calculateCharacterEncoding, calculateRenderKitId, createView, deriveLogicalViewId, deriveViewId, getBookmarkableURL, getProtectedViewsUnmodifiable, getRedirectURL, getResourceURL, getViewDeclarationLanguage, initView, removeProtectedView, renderView, restoreView, writeState
protected ViewHandler wrapped
public PortletViewHandler(ViewHandler parent)
public ViewHandler getWrapped()
getWrapped
in interface FacesWrapper<ViewHandler>
getWrapped
in class ViewHandlerWrapper
public String getActionURL(FacesContext context, String viewId)
getActionURL
in class ViewHandlerWrapper
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 ViewHandlerWrapper
ctx
- FacesContext
for the current request