com.ocpsoft.pretty.faces.application
Class PrettyViewHandler
java.lang.Object
javax.faces.application.ViewHandler
com.ocpsoft.pretty.faces.application.PrettyViewHandler
public class PrettyViewHandler
- extends javax.faces.application.ViewHandler
- Author:
- Lincoln Baxter, III
|
Field Summary |
protected javax.faces.application.ViewHandler |
parent
|
| Fields inherited from class javax.faces.application.ViewHandler |
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME |
|
Constructor Summary |
PrettyViewHandler(javax.faces.application.ViewHandler viewHandler)
|
|
Method Summary |
String |
calculateCharacterEncoding(javax.faces.context.FacesContext context)
|
Locale |
calculateLocale(javax.faces.context.FacesContext facesContext)
|
String |
calculateRenderKitId(javax.faces.context.FacesContext facesContext)
|
javax.faces.component.UIViewRoot |
createView(javax.faces.context.FacesContext context,
String viewId)
|
String |
deriveLogicalViewId(javax.faces.context.FacesContext context,
String rawViewId)
|
String |
deriveViewId(javax.faces.context.FacesContext context,
String rawViewId)
Canonicalize the given viewId, then pass that viewId to the next ViewHandler in the chain. |
String |
getActionURL(javax.faces.context.FacesContext context,
String viewId)
|
String |
getBookmarkableURL(javax.faces.context.FacesContext context,
String viewId,
Map<String,List<String>> parameters,
boolean includeViewParams)
|
String |
getRedirectURL(javax.faces.context.FacesContext context,
String viewId,
Map<String,List<String>> parameters,
boolean includeViewParams)
|
String |
getResourceURL(javax.faces.context.FacesContext facesContext,
String path)
|
javax.faces.view.ViewDeclarationLanguage |
getViewDeclarationLanguage(javax.faces.context.FacesContext context,
String viewId)
|
void |
initView(javax.faces.context.FacesContext context)
|
void |
renderView(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIViewRoot viewRoot)
|
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
String viewId)
|
void |
writeState(javax.faces.context.FacesContext facesContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected javax.faces.application.ViewHandler parent
PrettyViewHandler
public PrettyViewHandler(javax.faces.application.ViewHandler viewHandler)
deriveLogicalViewId
public String deriveLogicalViewId(javax.faces.context.FacesContext context,
String rawViewId)
calculateLocale
public Locale calculateLocale(javax.faces.context.FacesContext facesContext)
- Specified by:
calculateLocale in class javax.faces.application.ViewHandler
calculateRenderKitId
public String calculateRenderKitId(javax.faces.context.FacesContext facesContext)
- Specified by:
calculateRenderKitId in class javax.faces.application.ViewHandler
createView
public javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context,
String viewId)
- Specified by:
createView in class javax.faces.application.ViewHandler
restoreView
public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
String viewId)
- Specified by:
restoreView in class javax.faces.application.ViewHandler
getActionURL
public String getActionURL(javax.faces.context.FacesContext context,
String viewId)
- Specified by:
getActionURL in class javax.faces.application.ViewHandler
getBookmarkableURL
public String getBookmarkableURL(javax.faces.context.FacesContext context,
String viewId,
Map<String,List<String>> parameters,
boolean includeViewParams)
getRedirectURL
public String getRedirectURL(javax.faces.context.FacesContext context,
String viewId,
Map<String,List<String>> parameters,
boolean includeViewParams)
getResourceURL
public String getResourceURL(javax.faces.context.FacesContext facesContext,
String path)
- Specified by:
getResourceURL in class javax.faces.application.ViewHandler
renderView
public void renderView(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIViewRoot viewRoot)
throws IOException,
javax.faces.FacesException
- Specified by:
renderView in class javax.faces.application.ViewHandler
- Throws:
IOException
javax.faces.FacesException
writeState
public void writeState(javax.faces.context.FacesContext facesContext)
throws IOException
- Specified by:
writeState in class javax.faces.application.ViewHandler
- Throws:
IOException
deriveViewId
public String deriveViewId(javax.faces.context.FacesContext context,
String rawViewId)
- Canonicalize the given viewId, then pass that viewId to the next ViewHandler in the chain.
calculateCharacterEncoding
public String calculateCharacterEncoding(javax.faces.context.FacesContext context)
- Overrides:
calculateCharacterEncoding in class javax.faces.application.ViewHandler
getViewDeclarationLanguage
public javax.faces.view.ViewDeclarationLanguage getViewDeclarationLanguage(javax.faces.context.FacesContext context,
String viewId)
initView
public void initView(javax.faces.context.FacesContext context)
throws javax.faces.FacesException
- Overrides:
initView in class javax.faces.application.ViewHandler
- Throws:
javax.faces.FacesException
Copyright © 2011. All Rights Reserved.