public class ViewHandlerImpl extends ViewHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
FORM_STATE_MARKER |
CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME| Constructor and Description |
|---|
ViewHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
Locale |
calculateLocale(FacesContext facesContext)
Get the locales specified as acceptable by the original request, compare them to the
locales supported by this Application and return the best match.
|
String |
calculateRenderKitId(FacesContext facesContext) |
UIViewRoot |
createView(FacesContext context,
String viewId) |
String |
deriveLogicalViewId(FacesContext context,
String rawViewId) |
String |
deriveViewId(FacesContext context,
String input) |
String |
getActionURL(FacesContext context,
String viewId) |
String |
getBookmarkableURL(FacesContext context,
String viewId,
Map<String,List<String>> parameters,
boolean includeViewParams) |
String |
getRedirectURL(FacesContext context,
String viewId,
Map<String,List<String>> parameters,
boolean includeViewParams) |
String |
getResourceURL(FacesContext facesContext,
String path) |
ViewDeclarationLanguage |
getViewDeclarationLanguage(FacesContext context,
String viewId) |
static ViewHandler |
getViewHandler(FacesContext facesContext)
Gets the current ViewHandler via FacesContext.getApplication().getViewHandler().
|
protected ViewHandlerSupport |
getViewHandlerSupport() |
protected ViewHandlerSupport |
getViewHandlerSupport(FacesContext context) |
void |
initView(FacesContext context) |
void |
renderView(FacesContext context,
UIViewRoot viewToRender) |
UIViewRoot |
restoreView(FacesContext context,
String viewId) |
void |
setViewHandlerSupport(ViewHandlerSupport viewHandlerSupport) |
void |
writeState(FacesContext context) |
calculateCharacterEncodingpublic static final String FORM_STATE_MARKER
public static ViewHandler getViewHandler(FacesContext facesContext)
facesContext - public String deriveViewId(FacesContext context, String input)
deriveViewId in class ViewHandlerpublic String deriveLogicalViewId(FacesContext context, String rawViewId)
deriveLogicalViewId in class ViewHandlerpublic String getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
getBookmarkableURL in class ViewHandlerpublic String getRedirectURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
getRedirectURL in class ViewHandlerpublic ViewDeclarationLanguage getViewDeclarationLanguage(FacesContext context, String viewId)
getViewDeclarationLanguage in class ViewHandlerpublic void initView(FacesContext context) throws FacesException
initView in class ViewHandlerFacesExceptionpublic Locale calculateLocale(FacesContext facesContext)
calculateLocale in class ViewHandlerpublic String calculateRenderKitId(FacesContext facesContext)
calculateRenderKitId in class ViewHandlerpublic UIViewRoot createView(FacesContext context, String viewId)
createView in class ViewHandlerpublic String getActionURL(FacesContext context, String viewId)
getActionURL in class ViewHandlerpublic String getResourceURL(FacesContext facesContext, String path)
getResourceURL in class ViewHandlerpublic void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException
renderView in class ViewHandlerIOExceptionFacesExceptionpublic UIViewRoot restoreView(FacesContext context, String viewId)
restoreView in class ViewHandlerpublic void writeState(FacesContext context) throws IOException
writeState in class ViewHandlerIOExceptionpublic void setViewHandlerSupport(ViewHandlerSupport viewHandlerSupport)
protected ViewHandlerSupport getViewHandlerSupport()
protected ViewHandlerSupport getViewHandlerSupport(FacesContext context)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.