Package javax.portlet.faces

Examples of javax.portlet.faces.Bridge.doFacesRequest()


    // Run test
    Bridge bridge = getFacesBridge(request, response);
    bridge.destroy();
    try
    {
      bridge.doFacesRequest(request, response);
      resultWriter.setStatus(BridgeTCKResultWriter.FAIL);
      resultWriter.setDetail("Didn't throw the BridgeUninitializedException from doFacesRequest(render) when passed a destroyed bridge. Instead the request completed without an exception.");
    }
    catch (BridgeUninitializedException bue)
    {
View Full Code Here


   
    // Run test
    try
    {
      Bridge bridge = getFacesBridge(request, response);
      bridge.doFacesRequest((RenderRequest) null, (RenderResponse) null);
      resultWriter.setStatus(BridgeTCKResultWriter.FAIL);
      resultWriter.setDetail("Didn't throw the NullPointerException from doFacesRequest(render) when passed a null request/response. Instead the request completed without an exception.");
    }
    catch (NullPointerException bue)
    {
View Full Code Here

    // Run test
    Bridge bridge = getFacesBridge(request, response);
    bridge.destroy();
    try
    {
      bridge.doFacesRequest(request, response);
      resultWriter.setStatus(BridgeTCKResultWriter.FAIL);
      resultWriter.setDetail("Didn't throw the BridgeUninitializedException from doFacesRequest(resource) when passed a destroyed bridge. Instead the request completed without an exception.");
    }
    catch (BridgeUninitializedException bue)
    {
View Full Code Here

    {

      Bridge bridge = super.getFacesBridge(renderRequest, renderResponse);
      try
      {
        bridge.doFacesRequest(renderRequest, renderResponse);
      }
      catch (BridgeDefaultViewNotSpecifiedException e)
      {
        outputTestResult(renderResponse, Boolean.TRUE, "Correctly threw BridgeDefaultViewNotSpecifiedException when no default defined.");
      }
View Full Code Here

    else if (getTestName().equals(BRIDGESETSCONTENTTYPE_TEST))
    {
      // By invoking the bridge directly (and not setting the contentType)
      // we force the bridge to have to do the work
      Bridge bridge = super.getFacesBridge(renderRequest, renderResponse);
      bridge.doFacesRequest(renderRequest, renderResponse);
    }
    else if (getTestName().equals(VIEWIDWITHPARAM_TEST))
    {
      renderRequest.setAttribute(Bridge.VIEW_ID, "/tests/SingleRequestTest.jsp?param1=testValue");
      super.doDispatch(renderRequest, renderResponse);
View Full Code Here

      // attribute as well, because at this point the bridge should not render any JSF views to the response.
      Object renderPartAttribute = renderRequest.getAttribute(RenderRequest.RENDER_PART);

      if ((renderPartAttribute != null) && renderPartAttribute.equals(RenderRequest.RENDER_HEADERS)) {
        Bridge facesBridge = getFacesBridge(renderRequest, renderResponse);
        facesBridge.doFacesRequest(renderRequest, renderResponse);
      }
    }
    catch (PortletException e) {

      // Unfortunately the signature for GenericPortlet.doHeaders(RenderRequest, RenderResponse) does not throw
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.