Examples of handleNavigation()


Examples of javax.faces.application.NavigationHandler.handleNavigation()

      MethodBinding binding = actionSource.getAction();
      // Retrieve the NavigationHandler instance..
      NavigationHandler navHandler = application.getNavigationHandler();
      // Invoke nav handling..
      String navBinding = (null != binding) ? binding.getExpressionString() : null;
      navHandler.handleNavigation(facesContext, navBinding, errorOutcome);
      // Trigger a switch to Render Response if needed
      facesContext.renderResponse();
    }
  }
View Full Code Here

Examples of javax.faces.application.NavigationHandler.handleNavigation()

        UIViewRoot view = viewHandler.createView(facesContext, viewId);
        facesContext.setViewRoot(view);
      }

      NavigationHandler navigationHandler = application.getNavigationHandler();
      navigationHandler.handleNavigation(facesContext, null, outcome);


      lifecycle.render(facesContext);
    } finally {
      facesContext.release();
View Full Code Here

Examples of javax.faces.application.NavigationHandler.handleNavigation()

      }
      if (LOG.isDebugEnabled()) {
        LOG.debug("outcome = '" + outcome + "'");
      }
      NavigationHandler navigationHandler = application.getNavigationHandler();
      navigationHandler.handleNavigation(facesContext, null, outcome);
      lifecycle.render(facesContext);
    } finally {
      facesContext.release();
    }
  }
View Full Code Here

Examples of javax.faces.application.NavigationHandler.handleNavigation()

      // Retrieve the NavigationHandler instance..
      NavigationHandler navHandler = application.getNavigationHandler();
      // Invoke nav handling..
      String navBinding =
          (null != binding) ? binding.getExpressionString() : null;
      navHandler.handleNavigation(facesContext, navBinding,
          errorOutcome);
      // Trigger a switch to Render Response if needed
      facesContext.renderResponse();
    }
  }
View Full Code Here

Examples of javax.faces.application.NavigationHandler.handleNavigation()

                throw new FacesException("Error calling action method of component with id " + actionEvent.getComponent().getClientId(facesContext), e);
            }
        }
       
        NavigationHandler navigationHandler = application.getNavigationHandler();
        navigationHandler.handleNavigation(facesContext, fromAction, outcome);
        //Render Response if needed
        facesContext.renderResponse();

    }
}
View Full Code Here

Examples of javax.faces.application.NavigationHandler.handleNavigation()

                throw new FacesException("Error calling action method of component with id " + actionEvent.getComponent().getClientId(facesContext), e);
            }
        }

        NavigationHandler navigationHandler = application.getNavigationHandler();
        navigationHandler.handleNavigation(facesContext,
                                           fromAction,
                                           outcome);
    //Render Response if needed
    facesContext.renderResponse();
View Full Code Here

Examples of javax.faces.application.NavigationHandler.handleNavigation()

            }

        }
       
        NavigationHandler navigationHandler = application.getNavigationHandler();
        navigationHandler.handleNavigation(facesContext, fromAction, outcome);
        //Render Response if needed
        facesContext.renderResponse();

    }
}
View Full Code Here

Examples of javax.faces.application.NavigationHandler.handleNavigation()

    }
    else if (decoratedNavigationHandler != null) {
      // Standard NavigationHandler specified through constructor argument:
      // Call it through standard API, without original NavigationHandler passed in.
      // The called handler will not be able to redirect to the original handler.
      decoratedNavigationHandler.handleNavigation(facesContext, fromAction, outcome);
    }
    else if (originalNavigationHandler != null) {
      // No NavigationHandler specified through constructor argument:
      // Call original handler, marking the end of this chain.
      originalNavigationHandler.handleNavigation(facesContext, fromAction, outcome);
View Full Code Here

Examples of javax.faces.application.NavigationHandler.handleNavigation()

    if (handler instanceof DecoratingNavigationHandler) {
      ((DecoratingNavigationHandler) handler).handleNavigation(
          facesContext, fromAction, outcome, this.originalNavigationHandler);
    }
    else {
      handler.handleNavigation(facesContext, fromAction, outcome);
    }
  }

  /**
   * Return the target NavigationHandler to delegate to.
View Full Code Here

Examples of javax.faces.application.NavigationHandler.handleNavigation()

    }
    if (LOG.isDebugEnabled()) {
      LOG.debug("outcome = '" + outcome + "'");
    }
    NavigationHandler navigationHandler = application.getNavigationHandler();
    navigationHandler.handleNavigation(facesContext, null, outcome);
    lifecycle.render(facesContext);
  }

  public abstract String invokeApplication(FacesContext facesContext);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.