org.apache.myfaces.orchestra.urlParamNav
Class UrlParameterNavigationHandler
java.lang.Object
javax.faces.application.NavigationHandler
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:
- add this navigation handler to your faces-config.xml
- add the
UrlParameterViewHandler
to your faces-config.xml
- configure the navigation case to use <redirect/> flag.
Note that redirect is required for the rule; this is only natural as without redirect
there is no bookmarkable URL for the user.
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 |
UrlParameterNavigationHandler
public UrlParameterNavigationHandler(javax.faces.application.NavigationHandler original)
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.