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 |
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) |
calculateCharacterEncoding
public static final String FORM_STATE_MARKER
public static ViewHandler getViewHandler(FacesContext facesContext)
facesContext
- public String deriveViewId(FacesContext context, String input)
deriveViewId
in class ViewHandler
public String getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
getBookmarkableURL
in class ViewHandler
public String getRedirectURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
getRedirectURL
in class ViewHandler
public ViewDeclarationLanguage getViewDeclarationLanguage(FacesContext context, String viewId)
getViewDeclarationLanguage
in class ViewHandler
public void initView(FacesContext context) throws FacesException
initView
in class ViewHandler
FacesException
public Locale calculateLocale(FacesContext facesContext)
calculateLocale
in class ViewHandler
public String calculateRenderKitId(FacesContext facesContext)
calculateRenderKitId
in class ViewHandler
public UIViewRoot createView(FacesContext context, String viewId)
createView
in class ViewHandler
public String getActionURL(FacesContext context, String viewId)
getActionURL
in class ViewHandler
public String getResourceURL(FacesContext facesContext, String path)
getResourceURL
in class ViewHandler
public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException
renderView
in class ViewHandler
IOException
FacesException
public UIViewRoot restoreView(FacesContext context, String viewId)
restoreView
in class ViewHandler
public void writeState(FacesContext context) throws IOException
writeState
in class ViewHandler
IOException
public void setViewHandlerSupport(ViewHandlerSupport viewHandlerSupport)
protected ViewHandlerSupport getViewHandlerSupport()
protected ViewHandlerSupport getViewHandlerSupport(FacesContext context)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.