org.apache.myfaces.tomahawk.util
Class DirectNavigationHandler

java.lang.Object
  extended by javax.faces.application.NavigationHandler
      extended by org.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.

Specified by:
handleNavigation in class javax.faces.application.NavigationHandler


Copyright © 2010. All Rights Reserved.