@Override public void handleNavigation(FacesContext facesContext, @Nullable String fromAction, @Nullable String outcome, @Nullable NavigationHandler originalNavigationHandler) { lastFromAction = fromAction; lastOutcome = outcome; if (originalNavigationHandler != null) { originalNavigationHandler.handleNavigation(facesContext, fromAction, outcome); } } }
decoratedNavigationHandler.handleNavigation(facesContext, fromAction, outcome); originalNavigationHandler.handleNavigation(facesContext, fromAction, outcome);
/** * Handle the navigation request implied by the specified parameters, * through delegating to the target bean in the Spring application context. * <p>The target bean needs to extend the JSF NavigationHandler class. * If it extends Spring's DecoratingNavigationHandler, the overloaded * {@code handleNavigation} method with the original NavigationHandler * as argument will be used. Else, the standard {@code handleNavigation} * method will be called. */ @Override public void handleNavigation(FacesContext facesContext, String fromAction, String outcome) { NavigationHandler handler = getDelegate(facesContext); if (handler instanceof DecoratingNavigationHandler) { ((DecoratingNavigationHandler) handler).handleNavigation( facesContext, fromAction, outcome, this.originalNavigationHandler); } else { handler.handleNavigation(facesContext, fromAction, outcome); } }
decoratedNavigationHandler.handleNavigation(facesContext, fromAction, outcome); originalNavigationHandler.handleNavigation(facesContext, fromAction, outcome);
/** * Handle the navigation request implied by the specified parameters, * through delegating to the target bean in the Spring application context. * <p>The target bean needs to extend the JSF NavigationHandler class. * If it extends Spring's DecoratingNavigationHandler, the overloaded * {@code handleNavigation} method with the original NavigationHandler * as argument will be used. Else, the standard {@code handleNavigation} * method will be called. */ @Override public void handleNavigation(FacesContext facesContext, String fromAction, String outcome) { NavigationHandler handler = getDelegate(facesContext); if (handler instanceof DecoratingNavigationHandler) { ((DecoratingNavigationHandler) handler).handleNavigation( facesContext, fromAction, outcome, this.originalNavigationHandler); } else { handler.handleNavigation(facesContext, fromAction, outcome); } }
String outcome = (invokeResult != null) ? invokeResult.toString() : null; facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, actionExpressionString, outcome);
String outcome = (invokeResult != null) ? invokeResult.toString() : null; facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, actionExpressionString, outcome);
@Override public void handleNavigation(FacesContext context, String fromAction, String outcome) { _wrapped.handleNavigation(context, fromAction, outcome); }
@Override public void handleNavigation(FacesContext context, String fromAction, String outcome, String toFlowDocumentId) { getWrapped().handleNavigation(context, fromAction, outcome, toFlowDocumentId); }
@Override public void handleNavigation(FacesContext context, String fromAction, String outcome, String toFlowDocumentId) { getWrapped().handleNavigation(context, fromAction, outcome, toFlowDocumentId); }
@Override public void navigate(FacesContext facesContext, String fromAction, String outcome) { Application application = facesContext.getApplication(); NavigationHandler navigationHandler = application.getNavigationHandler(); navigationHandler.handleNavigation(facesContext, fromAction, outcome); }
/** * @see Faces#navigate(String) */ public static void navigate(FacesContext context, String outcome) { context.getApplication().getNavigationHandler().handleNavigation(context, null, outcome); }
/** * @see Faces#navigate(String) */ public static void navigate(FacesContext context, String outcome) { context.getApplication().getNavigationHandler().handleNavigation(context, null, outcome); }
@Override public void handleNavigation(FacesContext context, String fromAction, String outcome) { getWrapped().handleNavigation(context, fromAction, outcome); }
@Override public void navigateTo(Class<? extends ViewConfig> targetView) { FacesContext facesContext = FacesContext.getCurrentInstance(); facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, null, targetView.getName()); facesContext.renderResponse(); } }
/** * {@inheritDoc} */ public void navigateTo(Class<? extends ViewConfig> targetView) { FacesContext facesContext = FacesContext.getCurrentInstance(); facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, null, targetView.getName()); facesContext.renderResponse(); } }
/** * {@inheritDoc} */ public void navigateTo(Class<? extends ViewConfig> targetView) { FacesContext facesContext = FacesContext.getCurrentInstance(); facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, null, targetView.getName()); facesContext.renderResponse(); } }
private void handleOutcome(final FacesContext facesContext, final JbpmJsfContextImpl jbpmJsfContext) { final NavigationHandler navigationHandler = facesContext.getApplication().getNavigationHandler(); if (jbpmJsfContext.isError()) { navigationHandler.handleNavigation(facesContext, jbpmJsfContext.getOutcomeActionName(), "error"); } else { final String outcome = jbpmJsfContext.getOutcome(); if (outcome != null) { navigationHandler.handleNavigation(facesContext, jbpmJsfContext.getOutcomeActionName(), outcome); } } }
/** * Call the JSF navigation handler */ public static void handleOutcome(FacesContext facesContext, String outcome, String fromAction) { facesContext.getApplication().getNavigationHandler() .handleNavigation(facesContext, fromAction, outcome); //after every time that the view may have changed, //we need to flush the page context, since the //attribute map is being discarder Contexts.getPageContext().flush(); }
public void handleNavigation(FacesContext context, String fromAction, String outcome) { if (EnvUtils.isICEfacesView(context) && EnvUtils.isReplayNavigationOnReload(context)) { NavigationCase navigationCase = getNavigationCase(context, fromAction, outcome); if (navigationCase != null && !navigationCase.isRedirect()) { UIViewRoot viewRoot = context.getViewRoot(); String fromViewId = viewRoot.getViewId(); Map map = WindowScopeManager.lookupWindowScope(context); map.put(NavigationKey, new NavigationInfo(fromViewId, fromAction, outcome, handler)); } } handler.handleNavigation(context, fromAction, outcome); }