Examples of renderResponse()


Examples of javax.faces.context.FacesContext.renderResponse()

          LOG.error("", e);
          FacesContext facesContext = facesContextFactory.getFacesContext(context, request, response, lifecycle);
          // TODO  better Message i18n Message?
          FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getCause().getMessage(), null);
          facesContext.addMessage(null, facesMessage);
          facesContext.renderResponse();
          return facesContext;
        }
      }
    }
    return facesContextFactory.getFacesContext(context, request, response, lifecycle);
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

      {
        hsr.reset();
        _LOG.warning(e);      
        FacesMessage message = MessageFactory.getMessage(context, DOWNLOAD_MESSAGE_ID);
        context.addMessage(null, message);
        context.renderResponse();
        return;
      }
    }
   
    context.responseComplete();
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

          LOG.error("", e);
          FacesContext facesContext = facesContextFactory.getFacesContext(context, request, response, lifecycle);
          // TODO  better Message i18n Message?
          FacesMessage facesMessage = new FacesMessage(e.getCause().getMessage());
          facesContext.addMessage(null, facesMessage);
          facesContext.renderResponse();
          return facesContext;
        }
      }
    }
    return facesContextFactory.getFacesContext(context, request, response, lifecycle);
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

      String navBinding =
          (null != binding) ? binding.getExpressionString() : null;
      navHandler.handleNavigation(facesContext, navBinding,
          errorOutcome);
      // Trigger a switch to Render Response if needed
      facesContext.renderResponse();
    }
  }

  public String getErrorOutcome() {
    return errorOutcome;
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

          FacesContext facesContext = FacesContext.getCurrentInstance();
          FacesMessage message = new FacesMessage(e.getMessage());
          message.setSeverity(FacesMessage.SEVERITY_ERROR);
          component.setValid(false);
          facesContext.addMessage(component.getClientId(facesContext), message);
          facesContext.renderResponse();
          throw new CrankValidationException(message.toString());
    }
  }

View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

    if (event.getPhaseId() == PhaseId.RESTORE_VIEW)
    {
      FacesContext context = event.getFacesContext();
      // Now restore the Faces Messages
      restoreFacesMessageState(context);
      context.renderResponse();
    }
  }

  private final class LRUMap
    extends LinkedHashMap<String, Map<String, Object>>
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

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

    }
}
View Full Code Here

Examples of org.apache.tapestry.services.ResponseBuilder.renderResponse()

        PageRenderSupportImpl support = new PageRenderSupportImpl(
                _assetFactory, namespace, null, builder);

        TapestryUtils.storePageRenderSupport(cycle, support);
       
        builder.renderResponse(cycle);
       
        String id = "Tapestry Portlet " + _applicationId + " " + namespace;

        writer.comment("BEGIN " + id);
        writer.comment("Page: " + page.getPageName());
View Full Code Here

Examples of org.apache.tapestry.services.ResponseRenderer.renderResponse()

        cycle.setListenerParameters(parameters);

        d.trigger(cycle);

        rr.renderResponse(cycle);

        replayControls();

        DirectService ds = new DirectService();
        ds.setLinkFactory(lf);
View Full Code Here

Examples of org.apache.tapestry.services.ResponseRenderer.renderResponse()

        cycle.setListenerParameters(parameters);

        d.trigger(cycle);

        rr.renderResponse(cycle);

        replayControls();

        DirectService ds = new DirectService();
        ds.setLinkFactory(lf);
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.