spring-framework / org.springframework.web.jsf / DecoratingNavigationHandler / handleNavigation

handleNavigation

fun handleNavigation(facesContext: FacesContext, fromAction: String, outcome: String): Unit

This implementation of the standard JSF handleNavigation method delegates to the overloaded variant, passing in constructor-injected NavigationHandler as argument.

See Also
#handleNavigation(javax.faces.context.FacesContext, String, String, javax.faces.application.NavigationHandler)

abstract fun handleNavigation(facesContext: FacesContext, @Nullable fromAction: String, @Nullable outcome: String, @Nullable originalNavigationHandler: NavigationHandler): Unit

Special handleNavigation variant with explicit NavigationHandler argument. Either called directly, by code with an explicit original handler, or called from the standard handleNavigation method, as plain JSF-defined NavigationHandler.

Implementations should invoke callNextHandlerInChain to delegate to the next handler in the chain. This will always call the most appropriate next handler (see callNextHandlerInChain javadoc). Alternatively, the decorated NavigationHandler or the passed-in original NavigationHandler can also be called directly; however, this is not as flexible in terms of reacting to potential positions in the chain.

Parameters

facesContext - the current JSF context

fromAction - the action binding expression that was evaluated to retrieve the specified outcome, or null if the outcome was acquired by some other means

outcome - the logical outcome returned by a previous invoked application action (which may be null)

originalNavigationHandler - the original NavigationHandler, or null if none

See Also
#callNextHandlerInChain