Examples of responseComplete()


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

        out.println("<XRDS xmlns=\"xri://$xrd*($v*2.0)\"><XRD><Service>" +
                    "<Type>http://specs.openid.net/auth/2.0/return_to</Type><URI>" +
                    open.returnToUrl() + "</URI></Service></XRD></XRDS>");

        context.responseComplete();
    }


    public void afterPhase(PhaseEvent event) {
    }
View Full Code Here

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

      response.setContentType("image/jpg");
      response.getOutputStream().write(image);
      response.flushBuffer();

      // end JSF lifecycle
      facesContext.responseComplete();

   }

   public Long getIsbn()
   {
View Full Code Here

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

   {
      try {
         FacesContext context = FacesContext.getCurrentInstance();
         HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
         response.sendError(code);
         context.responseComplete();
      }
      catch (IOException e) {
         throw new IllegalStateException(e);
      }
   }
View Full Code Here

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

                     if (event.getFlow().is(ServletRewriteFlow.FORWARD))
                     {
                        String dispatchResource = ((HttpInboundServletRewrite) event).getDispatchResource();
                        facesContext.getExternalContext().dispatch(dispatchResource);
                     }
                     facesContext.responseComplete();
                  }
                  else if (event.getFlow().is(ServletRewriteFlow.INCLUDE))
                  {
                     throw new IllegalStateException(
                              "Cannot issue INCLUDE directive within JSF lifecycle. Not supported.");
View Full Code Here

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

            {
               viewRoot = new UIViewRoot();
               viewRoot.setViewId("/com.ocpsoft.Dynaview.xhtml");
               facesContext.setViewRoot(viewRoot);
            }
            facesContext.responseComplete();
         }
      }
      else if (!facesContext.getResponseComplete())
      {
         FacesContext context = facesContext;
View Full Code Here

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

      Object response = facesContext.getExternalContext().getResponse();
      if (response instanceof HttpServletResponse)
      {
         sendError(code, message, (HttpServletResponse) response);
         facesContext.responseComplete();
      }

   }

   /**
 
View Full Code Here

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

            }
           
            if (!context.getApplication().getStateManager().isSavingStateInClient(context)){
                ((JspStateManagerImpl) context.getApplication().getStateManager()).saveSerializedView(context);
            }
            context.responseComplete();
        }
    }

    public void beforePhase(PhaseEvent event)
    {
View Full Code Here

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

            }
        } finally {
            output.close();
            input.close();
        }
        facesContext.responseComplete();
        return file;
    }

    /**
     * @return the tree
View Full Code Here

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

        context.renderResponse();
        return;
      }
    }
   
    context.responseComplete();
  }

  public MethodExpression getMethod()
  {
    return (MethodExpression) getProperty(METHOD_KEY);
View Full Code Here

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

      Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
      requestMap.put(RequestContextImpl.LAUNCH_PARAMETERS, launchParameters);
      requestMap.put(RequestContextImpl.LAUNCH_VIEW, poppedView);

      context.responseComplete();
      _LOG.fine("Returned from dialog and re-executing lifecycle for {0}",
                poppedView.getViewId());
    }

    return false;
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.