org.apache.myfaces.orchestra.urlParamNav
Class UrlParameterNavigationHandler

java.lang.Object
  extended by javax.faces.application.NavigationHandler
      extended by org.apache.myfaces.orchestra.urlParamNav.UrlParameterNavigationHandler

public class UrlParameterNavigationHandler
extends javax.faces.application.NavigationHandler

This navigation handler replaces EL expressions (value bindings) within the to-view-id property of a navigation rule.

Since we do not know quite how this feature may interact with other JSF frameworks that also provide navigation handlers, this feature is not enabled by default.

To enable this feature:

Note that redirect is required for the rule; this is only natural as without redirect there is no bookmarkable URL for the user.


Constructor Summary
UrlParameterNavigationHandler(javax.faces.application.NavigationHandler original)
           
 
Method Summary
 void handleNavigation(javax.faces.context.FacesContext context, java.lang.String fromAction, java.lang.String outcome)
           
protected  java.lang.String interceptRedirect(javax.faces.context.FacesContext context, java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlParameterNavigationHandler

public UrlParameterNavigationHandler(javax.faces.application.NavigationHandler original)
Method Detail

handleNavigation

public void handleNavigation(javax.faces.context.FacesContext context,
                             java.lang.String fromAction,
                             java.lang.String outcome)
Specified by:
handleNavigation in class javax.faces.application.NavigationHandler

interceptRedirect

protected java.lang.String interceptRedirect(javax.faces.context.FacesContext context,
                                             java.lang.String url)


Copyright 2007 The Apache Software Foundation. All Rights Reserved.