public final class DialogNavigationHandler
extends javax.faces.application.NavigationHandler
NavigationHandler implementation that allows dialogs to
be created via a logical outcome that returns with a specified prefix.
This is not the only way to start a dialog instance (applications can also
do this programmatically), but it is convenient in many cases.
| Constructor and Description |
|---|
DialogNavigationHandler(javax.faces.application.NavigationHandler original)
Creates a new instance of DialogNavigationHandler that delegates
to the specified original handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleNavigation(javax.faces.context.FacesContext context,
String fromAction,
String outcome)
Handle a navigation request from the application.
|
public DialogNavigationHandler(javax.faces.application.NavigationHandler original)
Creates a new instance of DialogNavigationHandler that delegates to the specified original handler.
original - Original NavigationHandlerpublic void handleNavigation(javax.faces.context.FacesContext context,
String fromAction,
String outcome)
Handle a navigation request from the application. The following rules are applied:
DialogContext instance:
Constants.DIALOG_PREFIX_PARAM (with a default
value of Constants.DIALOG_PREFIX), create and start
a new DialogContext instance for a logical name
based on the remainder of the logical outcome after the
prefix.DialogContext
instance, advance its progress based on the specified logical
outcome.handleNavigation in class javax.faces.application.NavigationHandlercontext - FacesContext for the current requestfromAction - Action that was invokedoutcome - Logical outcome from the invoked actionCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.