@Override public NavigationHandler getNavigationHandler() { return delegate().getNavigationHandler(); }
public static NavigationCase findNavigationCase(FacesContext context, String outcome) { ConfigurableNavigationHandler navHandler = (ConfigurableNavigationHandler) context.getApplication().getNavigationHandler(); String outcomeValue = (outcome == null) ? context.getViewRoot().getViewId() : outcome; return navHandler.getNavigationCase(context, null, outcomeValue); }
protected NavigationCase findNavigationCase(FacesContext context, UIOutcomeTarget outcomeTarget) { ConfigurableNavigationHandler navigationHandler = (ConfigurableNavigationHandler) context.getApplication().getNavigationHandler(); String outcome = outcomeTarget.getOutcome(); if (outcome == null) { outcome = context.getViewRoot().getViewId(); } if (PrimeApplicationContext.getCurrentInstance(context).getEnvironment().isAtLeastJsf22()) { if (outcomeTarget instanceof UIComponent) { String toFlowDocumentId = (String) ((UIComponent) outcomeTarget).getAttributes().get(ActionListener.TO_FLOW_DOCUMENT_ID_ATTR_NAME); if (toFlowDocumentId != null) { return navigationHandler.getNavigationCase(context, null, outcome, toFlowDocumentId); } } } return navigationHandler.getNavigationCase(context, null, 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);
/** * {@inheritDoc} */ public NavigationHandler getNavigationHandler() { return wrapped.getNavigationHandler(); }
@Override public NavigationHandler getNavigationHandler() { return application.getNavigationHandler(); }
protected BridgeNavigationHandler getBridgeNavigationHandler(FacesContext facesContext) { BridgeNavigationHandler bridgeNavigationHandler; NavigationHandler navigationHandler = facesContext.getApplication().getNavigationHandler(); if (navigationHandler instanceof BridgeNavigationHandler) { bridgeNavigationHandler = (BridgeNavigationHandler) navigationHandler; } else { bridgeNavigationHandler = new BridgeNavigationHandlerImpl(navigationHandler); } return bridgeNavigationHandler; }
/** * <p class="changed_added_2_0">The default behavior of this method * is to call {@link Application#getNavigationHandler} on the * wrapped {@link Application} object.</p> */ @Override public NavigationHandler getNavigationHandler() { return getWrapped().getNavigationHandler(); }
public NavigationHandler getNavigationHandler() { weaveDelegate(); //defined in the setter to speed things up a little NavigationHandler retVal = _delegate.getNavigationHandler(); //if (retVal != null && WeavingContext.isDynamic(retVal.getClass())) // retVal = new NavigationHandlerProxy(retVal); return retVal; }
/** * <p class="changed_added_2_0">The default behavior of this method * is to call {@link Application#getNavigationHandler} on the * wrapped {@link Application} object.</p> */ @Override public NavigationHandler getNavigationHandler() { return getWrapped().getNavigationHandler(); }
@Override public NavigationHandler getNavigationHandler() { return getWrapped().getNavigationHandler(); }
protected BridgeNavigationHandler getBridgeNavigationHandler(FacesContext facesContext) { BridgeNavigationHandler bridgeNavigationHandler; NavigationHandler navigationHandler = facesContext.getApplication().getNavigationHandler(); if (navigationHandler instanceof BridgeNavigationHandler) { bridgeNavigationHandler = (BridgeNavigationHandler) navigationHandler; } else { bridgeNavigationHandler = new BridgeNavigationHandlerImpl(navigationHandler); } return bridgeNavigationHandler; }
/** * <p class="changed_added_2_0"> * The default behavior of this method is to call {@link Application#getNavigationHandler} on * the wrapped {@link Application} object. * </p> */ @Override public NavigationHandler getNavigationHandler() { return getWrapped().getNavigationHandler(); }
/** * <p class="changed_added_2_0">The default behavior of this method * is to call {@link Application#getNavigationHandler} on the * wrapped {@link Application} object.</p> */ @Override public NavigationHandler getNavigationHandler() { return getWrapped().getNavigationHandler(); }
/** * <p class="changed_added_2_0">The default behavior of this method * is to call {@link Application#getNavigationHandler} on the * wrapped {@link Application} object.</p> */ @Override public NavigationHandler getNavigationHandler() { return getWrapped().getNavigationHandler(); }
/** * <p class="changed_added_2_0">The default behavior of this method * is to call {@link Application#getNavigationHandler} on the * wrapped {@link Application} object.</p> */ @Override public NavigationHandler getNavigationHandler() { return getWrapped().getNavigationHandler(); }
@Override public void navigateTo(Class<? extends ViewConfig> targetView) { FacesContext facesContext = FacesContext.getCurrentInstance(); facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, null, targetView.getName()); facesContext.renderResponse(); } }
public static NavigationCase findNavigationCase(FacesContext context, String outcome) { ConfigurableNavigationHandler navHandler = (ConfigurableNavigationHandler) context.getApplication().getNavigationHandler(); String outcomeValue = (outcome == null) ? context.getViewRoot().getViewId() : outcome; return navHandler.getNavigationCase(context, null, outcomeValue); }
/** * 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(); }