org.apache.myfaces.application
Class ViewHandlerImpl
java.lang.Object
javax.faces.application.ViewHandler
org.apache.myfaces.application.ViewHandlerImpl
public class ViewHandlerImpl
- extends ViewHandler
JSF 2.0 ViewHandler implementation
- Since:
- 2.0
Method Summary |
java.util.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. |
java.lang.String |
calculateRenderKitId(FacesContext facesContext)
|
UIViewRoot |
createView(FacesContext context,
java.lang.String viewId)
|
java.lang.String |
deriveViewId(FacesContext context,
java.lang.String input)
|
java.lang.String |
getActionURL(FacesContext context,
java.lang.String viewId)
|
java.lang.String |
getBookmarkableURL(FacesContext context,
java.lang.String viewId,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters,
boolean includeViewParams)
|
java.lang.String |
getRedirectURL(FacesContext context,
java.lang.String viewId,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters,
boolean includeViewParams)
|
java.lang.String |
getResourceURL(FacesContext facesContext,
java.lang.String path)
|
ViewDeclarationLanguage |
getViewDeclarationLanguage(FacesContext context,
java.lang.String viewId)
|
protected ViewHandlerSupport |
getViewHandlerSupport()
|
void |
initView(FacesContext context)
|
void |
renderView(FacesContext context,
UIViewRoot viewToRender)
|
UIViewRoot |
restoreView(FacesContext context,
java.lang.String viewId)
|
void |
setViewHandlerSupport(ViewHandlerSupport viewHandlerSupport)
|
void |
writeState(FacesContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORM_STATE_MARKER
public static final java.lang.String FORM_STATE_MARKER
- See Also:
- Constant Field Values
ViewHandlerImpl
public ViewHandlerImpl()
deriveViewId
public java.lang.String deriveViewId(FacesContext context,
java.lang.String input)
- Overrides:
deriveViewId
in class ViewHandler
getBookmarkableURL
public java.lang.String getBookmarkableURL(FacesContext context,
java.lang.String viewId,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters,
boolean includeViewParams)
- Overrides:
getBookmarkableURL
in class ViewHandler
getRedirectURL
public java.lang.String getRedirectURL(FacesContext context,
java.lang.String viewId,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters,
boolean includeViewParams)
- Overrides:
getRedirectURL
in class ViewHandler
getViewDeclarationLanguage
public ViewDeclarationLanguage getViewDeclarationLanguage(FacesContext context,
java.lang.String viewId)
- Overrides:
getViewDeclarationLanguage
in class ViewHandler
initView
public void initView(FacesContext context)
throws FacesException
- Overrides:
initView
in class ViewHandler
- Throws:
FacesException
calculateLocale
public java.util.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.
- Specified by:
calculateLocale
in class ViewHandler
calculateRenderKitId
public java.lang.String calculateRenderKitId(FacesContext facesContext)
- Specified by:
calculateRenderKitId
in class ViewHandler
createView
public UIViewRoot createView(FacesContext context,
java.lang.String viewId)
- Specified by:
createView
in class ViewHandler
getActionURL
public java.lang.String getActionURL(FacesContext context,
java.lang.String viewId)
- Specified by:
getActionURL
in class ViewHandler
getResourceURL
public java.lang.String getResourceURL(FacesContext facesContext,
java.lang.String path)
- Specified by:
getResourceURL
in class ViewHandler
renderView
public void renderView(FacesContext context,
UIViewRoot viewToRender)
throws java.io.IOException,
FacesException
- Specified by:
renderView
in class ViewHandler
- Throws:
java.io.IOException
FacesException
restoreView
public UIViewRoot restoreView(FacesContext context,
java.lang.String viewId)
- Specified by:
restoreView
in class ViewHandler
writeState
public void writeState(FacesContext context)
throws java.io.IOException
- Specified by:
writeState
in class ViewHandler
- Throws:
java.io.IOException
setViewHandlerSupport
public void setViewHandlerSupport(ViewHandlerSupport viewHandlerSupport)
getViewHandlerSupport
protected ViewHandlerSupport getViewHandlerSupport()
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.