Exemplo n.º 1
0
        ResponseWriter SetupResponseWriter(TextWriter httpWriter)            //TODO
        {
            FacesContext facesContext = getFacesContext();

            ResponseWriter oldWriter = facesContext.getResponseWriter();

            if (oldWriter == null)
            {
                throw new InvalidOperationException();
            }

            ResponseWriter writer = oldWriter.cloneWithWriter(new AspNetResponseWriter(httpWriter));

            facesContext.setResponseWriter(writer);
            return(oldWriter);
        }
Exemplo n.º 2
0
 public override void setResponseWriter(ResponseWriter __p1)
 {
     _facesContex.setResponseWriter(__p1);
 }