org.apache.myfaces.orchestra.urlParamNav
Class UrlParameterViewHandler

java.lang.Object
  extended by ViewHandlerWrapper
      extended by org.apache.myfaces.orchestra.urlParamNav.UrlParameterViewHandler

public class UrlParameterViewHandler
extends ViewHandlerWrapper

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.

This class also plays a few reflection-based tricks so that the code can be compiled against JSF1.1, and work with both JSF1.1 and JSF1.2. The code is a little fragile and will probably need to be updated to work correctly with JSF2.0, but that is the fault of the JSF spec.


Constructor Summary
UrlParameterViewHandler(ViewHandler original)
          Constructor.
 
Method Summary
 java.lang.String getActionURL(FacesContext context, java.lang.String viewId)
           
 ViewHandler getWrapped()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlParameterViewHandler

public UrlParameterViewHandler(ViewHandler original)
Constructor.

Method Detail

getWrapped

public ViewHandler getWrapped()

getActionURL

public java.lang.String getActionURL(FacesContext context,
                                     java.lang.String viewId)


Copyright © 2009 The Apache Software Foundation. All Rights Reserved.