org.apache.myfaces.tomahawk.util
Class DirectNavigationHandler

java.lang.Object
  extended byjavax.faces.application.NavigationHandler
      extended byorg.apache.myfaces.tomahawk.util.DirectNavigationHandler

public class DirectNavigationHandler
extends javax.faces.application.NavigationHandler

This is an alternative implementation of the NavigationHandler, directly using the outcome of an action as the name of the page.


Constructor Summary
DirectNavigationHandler()
           
 
Method Summary
 void handleNavigation(javax.faces.context.FacesContext context, java.lang.String fromAction, java.lang.String outcome)
          Gives the handleNavigation() method an alternative behaviour.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectNavigationHandler

public DirectNavigationHandler()
Method Detail

handleNavigation

public void handleNavigation(javax.faces.context.FacesContext context,
                             java.lang.String fromAction,
                             java.lang.String outcome)
Gives the handleNavigation() method an alternative behaviour. Linking is now processed directly to the given url (e.g. action="/pages/site.jsp"). There is no check if the outcome value really points to a valid page.



Copyright © 2007 Apache Software Foundation. All Rights Reserved.