org.apache.myfaces.orchestra.urlParamNav
Class UrlParameterViewHandler
java.lang.Object
ViewHandler
org.apache.myfaces.orchestra.urlParamNav.UrlParameterViewHandler
public class UrlParameterViewHandler
- extends ViewHandler
Allow the to-view-id URL in a faces-config navigation case to include
query parameters and EL expressions.
This class plays a few tricks to hide from the real NavigationHandler
and ViewHandler classes the fact that a URL contains non-standard data.
Method Summary |
java.util.Locale |
calculateLocale(FacesContext context)
|
java.lang.String |
calculateRenderKitId(FacesContext context)
|
UIViewRoot |
createView(FacesContext context,
java.lang.String viewId)
|
java.lang.String |
getActionURL(FacesContext context,
java.lang.String viewId)
|
java.lang.String |
getResourceURL(FacesContext context,
java.lang.String path)
|
void |
renderView(FacesContext context,
UIViewRoot viewToRender)
|
UIViewRoot |
restoreView(FacesContext context,
java.lang.String viewId)
|
void |
writeState(FacesContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlParameterViewHandler
public UrlParameterViewHandler(ViewHandler original)
calculateLocale
public java.util.Locale calculateLocale(FacesContext context)
calculateRenderKitId
public java.lang.String calculateRenderKitId(FacesContext context)
createView
public UIViewRoot createView(FacesContext context,
java.lang.String viewId)
getActionURL
public java.lang.String getActionURL(FacesContext context,
java.lang.String viewId)
getResourceURL
public java.lang.String getResourceURL(FacesContext context,
java.lang.String path)
renderView
public void renderView(FacesContext context,
UIViewRoot viewToRender)
throws java.io.IOException,
FacesException
- Throws:
java.io.IOException
FacesException
restoreView
public UIViewRoot restoreView(FacesContext context,
java.lang.String viewId)
writeState
public void writeState(FacesContext context)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2008 The Apache Software Foundation. All Rights Reserved.