congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NavigationHandler.handleNavigation
Code IndexAdd Tabnine to your IDE (free)

How to use
handleNavigation
method
in
javax.faces.application.NavigationHandler

Best Java code snippets using javax.faces.application.NavigationHandler.handleNavigation (Showing top 20 results out of 540)

origin: spring-projects/spring-framework

  @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);
    }
  }
}
origin: spring-projects/spring-framework

decoratedNavigationHandler.handleNavigation(facesContext, fromAction, outcome);
originalNavigationHandler.handleNavigation(facesContext, fromAction, outcome);
origin: spring-projects/spring-framework

/**
 * 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);
  }
}
origin: org.springframework/spring-web

decoratedNavigationHandler.handleNavigation(facesContext, fromAction, outcome);
originalNavigationHandler.handleNavigation(facesContext, fromAction, outcome);
origin: org.springframework/spring-web

/**
 * 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);
  }
}
origin: primefaces/primefaces

String outcome = (invokeResult != null) ? invokeResult.toString() : null;
facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, actionExpressionString, outcome);
origin: primefaces/primefaces

String outcome = (invokeResult != null) ? invokeResult.toString() : null;
facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, actionExpressionString, outcome);
origin: org.apache.myfaces.core/myfaces-impl

@Override
public void handleNavigation(FacesContext context, String fromAction, String outcome)
{
  _wrapped.handleNavigation(context, fromAction, outcome);
}
origin: org.apache.myfaces.core/myfaces-api

@Override
public void handleNavigation(FacesContext context,
               String fromAction,
               String outcome,
               String toFlowDocumentId)
{
  getWrapped().handleNavigation(context, fromAction, outcome, toFlowDocumentId);
}

origin: javax/javaee-web-api

@Override
public void handleNavigation(FacesContext context, String fromAction, String outcome, String toFlowDocumentId) {
  getWrapped().handleNavigation(context, fromAction, outcome, toFlowDocumentId);
}
origin: com.liferay.faces/com.liferay.faces.util

@Override
public void navigate(FacesContext facesContext, String fromAction, String outcome) {
  Application application = facesContext.getApplication();
  NavigationHandler navigationHandler = application.getNavigationHandler();
  navigationHandler.handleNavigation(facesContext, fromAction, outcome);
}
origin: org.omnifaces/omnifaces

/**
 * @see Faces#navigate(String)
 */
public static void navigate(FacesContext context, String outcome) {
  context.getApplication().getNavigationHandler().handleNavigation(context, null, outcome);
}
origin: omnifaces/omnifaces

/**
 * @see Faces#navigate(String)
 */
public static void navigate(FacesContext context, String outcome) {
  context.getApplication().getNavigationHandler().handleNavigation(context, null, outcome);
}
origin: com.sun.faces/jsf-api

@Override
public void handleNavigation(FacesContext context, String fromAction, String outcome) {
  getWrapped().handleNavigation(context, fromAction, outcome);
}
origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl

  @Override
  public void navigateTo(Class<? extends ViewConfig> targetView)
  {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, null, targetView.getName());
    facesContext.renderResponse();
  }
}
origin: org.apache.myfaces.extensions.cdi.modules/myfaces-extcdi-jsf12-module-impl

  /**
   * {@inheritDoc}
   */
  public void navigateTo(Class<? extends ViewConfig> targetView)
  {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, null, targetView.getName());
    facesContext.renderResponse();
  }
}
origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf20

  /**
   * {@inheritDoc}
   */
  public void navigateTo(Class<? extends ViewConfig> targetView)
  {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, null, targetView.getName());
    facesContext.renderResponse();
  }
}
origin: org.jbpm.jbpm3/jbpm-jbpm4jsf

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);
    }
  }
}
origin: org.jboss.seam/jboss-seam

/**
* 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();
}
origin: org.icefaces/icefaces

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);
}
javax.faces.applicationNavigationHandlerhandleNavigation

Javadoc

Perform navigation processing based on the state information in the specified FacesContext, plus the outcome string returned by an executed application action.

If the implementation class also extends ConfigurableNavigationHandler, the implementation must guarantee that the logic used in a call to ConfigurableNavigationHandler#getNavigationCase is used in this method to determine the correct navigation.

This method must set the render targets (used in partial rendering) to render all invoking javax.faces.context.PartialViewContext#setRenderAll) if the view identifier has changed as the result of an application action (to take into account Ajax requests).

Popular methods of NavigationHandler

    Popular in Java

    • Updating database using SQL prepared statement
    • compareTo (BigDecimal)
    • getSystemService (Context)
    • getSharedPreferences (Context)
    • BufferedReader (java.io)
      Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
    • ConnectException (java.net)
      A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
    • Time (java.sql)
      Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
    • Iterator (java.util)
      An iterator over a sequence of objects, such as a collection.If a collection has been changed since
    • Collectors (java.util.stream)
    • Option (scala)
    • Best plugins for Eclipse
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now