Examples of handleNavigation()


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

      if (facesContext.getViewRoot() == null) {
        facesContext.setViewRoot(createViewRoot(facesContext));
      }

      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()

      MethodExpression expression = actionSource.getActionExpression();
      // Retrieve the NavigationHandler instance..
      NavigationHandler navHandler = application.getNavigationHandler();
      // Invoke nav handling..
      String navBinding = (null != expression) ? expression.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()

    }

    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);
            }
View Full Code Here

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

        if (jbpmJsfContext.isError()) {
            navigationHandler.handleNavigation(facesContext, jbpmJsfContext.getOutcomeActionName(), "error");
        } else {
            final String outcome = jbpmJsfContext.getOutcome();
            if (outcome != null) {
                navigationHandler.handleNavigation(facesContext, jbpmJsfContext.getOutcomeActionName(), outcome);
            }
        }
    }

    public PhaseId getPhaseId() {
View Full Code Here

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

      User user =  (User) session.getAttribute("user");
      if(user == null)
      {
        Application application = fc.getApplication();
        NavigationHandler nh = application.getNavigationHandler();
        nh.handleNavigation(fc, "", "error");
      }
    }
   

  }
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 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()

                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()

    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.