A NavigationHandler is passed the outcome string returned by an application action invoked for this application, and will use this (along with related state information) to choose the view to be displayed next.
A default implementation of NavigationHandler must be provided by the JSF
implementation, which will be utilized unless setNavigationHandler() is called to
establish a different one. An implementation of this class must
be thread-safe. This default instance will compare the view identifier of the current
view, the specified action binding, and the specified outcome against any navigation rules
provided in faces-config.xml file(s). If a navigation case matches, the current view
will be changed by a call to FacesContext.setViewRoot(). Note that a
null outcome value will never match any navigation rule, so it can be used as an
indicator that the current view should be redisplayed.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | handleNavigation(FacesContext
The context, String FacesContext for the current requestThe action binding expression that was evaluated to retrieve the specified
outcome, or fromAction, String null if the outcome was acquired by some other meansThe logical outcome returned by a previous invoked application action (which
may be outcome)null)
Perform navigation processing based on the state
information in the specified |
| public void | handleNavigation(FacesContext
The context, String FacesContext for the current requestThe action binding expression that was evaluated to retrieve the specified
outcome, or fromAction, String null if the outcome was acquired by some other meansThe logical outcome returned by a previous invoked application action (which
may be outcome, String null)The defining document id of the flow into which this navigation will
cause entry. toFlowDocumentId)
Overloaded variant of
|
| NavigationHandler | back to summary |
|---|---|
| public NavigationHandler() | |
| handleNavigation | back to summary |
|---|---|
| public abstract void handleNavigation(FacesContext context, String fromAction, String outcome)
Perform navigation processing based on the state
information in the specified
If the implementation class also extends
This method must set the render targets (used in partial rendering) to
| |
| handleNavigation | back to summary |
|---|---|
| public void handleNavigation(FacesContext context, String fromAction, String outcome, String toFlowDocumentId)
Overloaded variant of
| |