Package javax.faces.lifecycle

Examples of javax.faces.lifecycle.Lifecycle.execute()


            Lifecycle lifecycle = lifecycleFactory.getLifecycle(lifecycleId);
            ServletFacesContextImpl facesContext = (ServletFacesContextImpl)
            facesContextFactory.getFacesContext
            (getServletContext(), request, response, lifecycle);
            facesContext.setExternalContext(externalContext);
            lifecycle.execute(facesContext);
            facesContext.getApplication()
            .getStateManager().saveSerializedView(facesContext);
        } finally {
            scope.leave();
        }
View Full Code Here


      Lifecycle lifecycle = getLifecycle();
      // Get the FacesContext instance for this request
      context = getFacesContext(request, response, lifecycle, null);

      // For actions we only execute the lifecycle phase
      lifecycle.execute(context);

      // If responseComplete don't save any state as we aren't falling through to render
      // Usual occurs because of a redirect
      if (!context.getResponseComplete())
      {
View Full Code Here

        // add self as PhaseListener to prevent action phases from
        // executing
        lifecycle.addPhaseListener(this);
        try
        {
          lifecycle.execute(context);
        }
        catch (Exception e)
        {
          // When exception occurs remove stored scope so don't
          // get stuck replaying the error when/if user refreshes
View Full Code Here

     
      // For actions we only execute the lifecycle phase

      lifecycle.addPhaseListener(this);
     
      lifecycle.execute(context);

      // If responseComplete don't save any state as we aren't falling through to render
      // Usual occurs because of a redirect
      if (!context.getResponseComplete())
      {
View Full Code Here

     
      // add self as PhaseListener to prevent action phase from executing (after restoreView)
      lifecycle.addPhaseListener(this);

      // For actions we only execute the lifecycle phase
      lifecycle.execute(context);
     
      // call the eventhandler to process
      EventNavigationResult result = mEventHandler.handleEvent(context, request.getEvent());
     
      // If redirected either during lifecycle or event handling merely return as new target is already encoded in response.
View Full Code Here

      Lifecycle lifecycle = getLifecycle();
      // Get the FacesContext instance for this request
      context = getFacesContext(request, response, lifecycle, null);

      // For actions we only execute the lifecycle phase
      lifecycle.execute(context);

      // If responseComplete don't save any state as we aren't falling through to render
      // Usual occurs because of a redirect
      if (!context.getResponseComplete())
      {
View Full Code Here

     
      // For actions we only execute the lifecycle phase

      lifecycle.addPhaseListener(this);
     
      lifecycle.execute(context);

      // If responseComplete don't save any state as we aren't falling through to render
      // Usual occurs because of a redirect
      if (!context.getResponseComplete())
      {
View Full Code Here

     
      // add self as PhaseListener to prevent action phase from executing (after restoreView)
      lifecycle.addPhaseListener(this);

      // For actions we only execute the lifecycle phase
      lifecycle.execute(context);
     
      // call the eventhandler to process
      EventNavigationResult result = mEventHandler.handleEvent(context, request.getEvent());
     
      // If redirected either during lifecycle or event handling merely return as new target is already encoded in response.
View Full Code Here

  }


  public void render(FacesContext context) {
    Lifecycle lifecycle = getBridgeConfig().getFacesLifecycle();
    lifecycle.execute(context);
    if(!context.getResponseComplete()){
      lifecycle.render(context);
    }
  }
}
View Full Code Here

      // add self as PhaseListener to prevent action phase from executing (after restoreView)
      Lifecycle lifecycle = getLifecycle();
      lifecycle.addPhaseListener(this);

      // For actions we only execute the lifecycle phase
      lifecycle.execute(context);
     
      // call the eventhandler to process
      EventNavigationResult result = mEventHandler.handleEvent(context, request.getEvent());
     
      if (result != null)
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.