|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.application.NavigationHandler
org.springframework.web.jsf.DecoratingNavigationHandler
org.springframework.webflow.executor.jsf.FlowNavigationHandler
public class FlowNavigationHandler
An implementation of a JSF NavigationHandler
that provides integration with Spring Web Flow.
Responsible for delegating to Spring Web Flow to launch and resume flow executions, treating JSF action outcomes
(like a command button click) as web flow events.
This class delegates to the standard NavigationHandler implementation when a navigation request does not pertain to a
flow execution.
The following navigation handler algorithm is implemented by default:
If a flow execution has been restored in the current request:
ViewSelection
.
If a flow execution has not been restored in the current request:
FlowDefinition
with that id and launch a new flow execution in the starting state. Expose the new execution
as the "current" flow execution for this request. Expose the first selected view as the "current" view selection.
NavigationHandler
implementation and return.
argument extractor
.
Note about customization: since NavigationHandlers managed directly by the JSF provider cannot be benefit from
DependencyInjection, See Spring's DelegatingNavigationHandlerProxy
when you need
to customize a FlowNavigationHandler instance.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
logger
Logger, usable by subclasses. |
Constructor Summary | |
---|---|
FlowNavigationHandler()
Create a new FlowNavigationHandler using the default constructor. |
|
FlowNavigationHandler(javax.faces.application.NavigationHandler originalNavigationHandler)
Create a new FlowNavigationHandler , wrapping the specified standard navigation handler implementation. |
Method Summary | |
---|---|
protected MutableAttributeMap |
createInput(ExternalContext context)
Factory method that creates the input attribute map for a newly created FlowExecution . |
FlowExecutorArgumentExtractor |
getArgumentExtractor()
Returns the argument extractor used by this navigation handler. |
org.springframework.binding.mapping.AttributeMapper |
getInputMapper()
Returns the configured flow execution input mapper. |
void |
handleNavigation(javax.faces.context.FacesContext facesContext,
java.lang.String fromAction,
java.lang.String outcome,
javax.faces.application.NavigationHandler originalNavigationHandler)
|
void |
setArgumentExtractor(FlowExecutorArgumentExtractor argumentExtractor)
Sets the argument extractor to use by this navigation handler. |
void |
setInputMapper(org.springframework.binding.mapping.AttributeMapper inputMapper)
Sets the service responsible for mapping attributes of an ExternalContext to a new FlowExecution
during a launch flow operation. |
Methods inherited from class org.springframework.web.jsf.DecoratingNavigationHandler |
---|
callNextHandlerInChain, getDecoratedNavigationHandler, handleNavigation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public FlowNavigationHandler()
FlowNavigationHandler
using the default constructor.
public FlowNavigationHandler(javax.faces.application.NavigationHandler originalNavigationHandler)
FlowNavigationHandler
, wrapping the specified standard navigation handler implementation.
originalNavigationHandler
- Standard NavigationHandler
we are wrappingMethod Detail |
---|
public FlowExecutorArgumentExtractor getArgumentExtractor()
public void setArgumentExtractor(FlowExecutorArgumentExtractor argumentExtractor)
public org.springframework.binding.mapping.AttributeMapper getInputMapper()
public void setInputMapper(org.springframework.binding.mapping.AttributeMapper inputMapper)
ExternalContext
to a new FlowExecution
during a launch flow operation.
The default implementation simply exposes all request parameters as flow execution input attributes. May be null.
RequestParameterInputMapper
public void handleNavigation(javax.faces.context.FacesContext facesContext, java.lang.String fromAction, java.lang.String outcome, javax.faces.application.NavigationHandler originalNavigationHandler)
handleNavigation
in class org.springframework.web.jsf.DecoratingNavigationHandler
protected MutableAttributeMap createInput(ExternalContext context)
FlowExecution
. This
implementation uses the registered input mapper, if any.
context
- the external context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |