Package javax.faces.context

Examples of javax.faces.context.ResponseWriter.startDocument()


    facesContext.setResponseWriter(new MockResponseWriter(stringWriter, "text/html", "UTF8"));
    ResponseWriter writer = facesContext.getResponseWriter();
   
    UIInput input = new UIInput();
   
    writer.startDocument();
    writer.startElement("span", input);
   
    NSUtils.writeNameSpace(facesContext, input);
   
    writer.endElement("span");
View Full Code Here


                    LOGGER.fine("ExternalContext.getFlash() throw UnsupportedOperationException -> Flash unavailable");
                }
            }
        } else {
            // render the view to the response
            newWriter.startDocument();
            doRenderView(context, view);
            try {
                extContext.getFlash().doPostPhaseActions(context);
            } catch (UnsupportedOperationException uoe) {
                if (LOGGER.isLoggable(Level.FINE)) {
View Full Code Here

                if (ctx.isProjectStage(ProjectStage.Development)) {
                    FormOmittedChecker.check(ctx);
                }
               
                // render the view to the response
                writer.startDocument();
                viewToRender.encodeAll(ctx);
                try {
                    ctx.getExternalContext().getFlash().doPostPhaseActions(ctx);
                } catch (UnsupportedOperationException uoe) {
                    if (LOGGER.isLoggable(Level.FINE)) {
View Full Code Here

                                                       null,
                                                       request.getCharacterEncoding());
        }
        context.setResponseWriter(newWriter);

        newWriter.startDocument();

        doRenderView(context, viewToRender);

        newWriter.endDocument();
View Full Code Here

        // Set the new ResponseWriter into the FacesContext, saving the old one aside.
        ResponseWriter responseWriter = facesContext.getResponseWriter();

        //Now we actually render the document
        // Call startDocument() on the ResponseWriter.
        responseWriter.startDocument();

        // Call encodeAll() on the UIViewRoot
        viewToRender.encodeAll(facesContext);

        // Call endDocument() on the ResponseWriter
View Full Code Here

      newWriter = renderKit.createResponseWriter(strWriter, null,
                                                 renderResponse.getCharacterEncoding());
    }
    context.setResponseWriter(newWriter);

    newWriter.startDocument();

    doRenderView(context, viewToRender);

    newWriter.endDocument();
View Full Code Here

                    {
                        extContext.getSession(true);
                    }
                   
                    // render the view to the response
                    writer.startDocument();

                    view.encodeAll(context);

                    writer.endDocument();
View Full Code Here

        // Set the new ResponseWriter into the FacesContext, saving the old one aside.
        ResponseWriter responseWriter = facesContext.getResponseWriter();

        //Now we actually render the document
        // Call startDocument() on the ResponseWriter.
        responseWriter.startDocument();

        // Call encodeAll() on the UIViewRoot
        viewToRender.encodeAll(facesContext);

        // Call endDocument() on the ResponseWriter
View Full Code Here

            }

            long time = System.currentTimeMillis();

            // render the view to the response
            writer.startDocument();
            viewToRender.encodeAll(context);
            writer.endDocument();

            // finish writing
            writer.close();
View Full Code Here

      // Set the new ResponseWriter into the FacesContext, saving the old one aside.
      ResponseWriter responseWriter = facesContext.getResponseWriter();
 
      // Now we actually render the document
      // Call startDocument() on the ResponseWriter.
      responseWriter.startDocument();
 
      // Call encodeAll() on the UIViewRoot
      viewToRender.encodeAll(facesContext);
 
      // Call endDocument() on the ResponseWriter
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.