org.apache.shale.dialog.faces
Class DialogNavigationHandler

java.lang.Object
  extended by javax.faces.application.NavigationHandler
      extended by org.apache.shale.dialog.faces.DialogNavigationHandler

public final class DialogNavigationHandler
extends javax.faces.application.NavigationHandler

An implementation of NavigationHandler that provides support for dialog management according to the rules specified below. It delegates handling to the standard implementation when there is no current dialog, or when an unrecognized outcome is returned.

$Id: DialogNavigationHandler.java 419431 2006-07-06 04:38:39Z wsmoak $


Field Summary
static String PREFIX
          The default prefix on a logical outcome String that indicates the remainder of the string is the name of a Dialog to be entered.
static Class[] SIGNATURE
          Parameter signature for the method bindings we create for an ActionState.
 
Constructor Summary
DialogNavigationHandler(javax.faces.application.NavigationHandler handler)
          Create a new DialogNavigationHandler, wrapping the specified standard navigation handler implementation.
 
Method Summary
 void handleNavigation(javax.faces.context.FacesContext context, String fromAction, String outcome)
          Handle the navigation request implied by the specified parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final String PREFIX

The default prefix on a logical outcome String that indicates the remainder of the string is the name of a Dialog to be entered. The actual value used can be set by defining a context initialization parameter for key Globals.PREFIX.

See Also:
Constant Field Values

SIGNATURE

public static final Class[] SIGNATURE

Parameter signature for the method bindings we create for an ActionState.

Constructor Detail

DialogNavigationHandler

public DialogNavigationHandler(javax.faces.application.NavigationHandler handler)

Create a new DialogNavigationHandler, wrapping the specified standard navigation handler implementation.

Parameters:
handler - Standard NavigationHandler we are wrapping
Method Detail

handleNavigation

public void handleNavigation(javax.faces.context.FacesContext context,
                             String fromAction,
                             String outcome)

Handle the navigation request implied by the specified parameters.

Specified by:
handleNavigation in class javax.faces.application.NavigationHandler
Parameters:
context - FacesContext for the current request
fromAction - The action binding expression that was evaluated to retrieve the specified outcome (if any)
outcome - The logical outcome returned by the specified action
Throws:
IllegalArgumentException - if the configuration information for a previously saved position cannot be found
IllegalArgumentException - if an unknown State type is found


Copyright © 2004-2006 Apache Software Foundation. All Rights Reserved.