Package org.apache.myfaces.tobago.internal.webapp

Examples of org.apache.myfaces.tobago.internal.webapp.TobagoResponseXmlWriterImpl


        stringWriter.toString());
  }

  @Test
  public void testCharArray() throws IOException {
    TobagoResponseWriter writer = new TobagoResponseXmlWriterImpl(stringWriter, "text/xml", "ISO-8859-1");
    writer.writeText("123".toCharArray(), 0, 3);
    Assert.assertEquals("123", stringWriter.toString());
  }
View Full Code Here


  @Test
  public void test() throws IOException {

    StringWriter stringWriter = new StringWriter();
    getFacesContext().setResponseWriter(new TobagoResponseXmlWriterImpl(stringWriter, "text/xml", "ISO-8859-1"));

    DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
    DefaultMutableTreeNode colors = new DefaultMutableTreeNode("Colors");
    DefaultMutableTreeNode numbers = new DefaultMutableTreeNode("Numbers");
    DefaultMutableTreeNode integers = new DefaultMutableTreeNode("Integers");
View Full Code Here

    // XXX for XHTML 1.0 the content type must be set to "text/html" for IE6
    // XXX so at this time we can't differ ...
//    xml = true;
    TobagoResponseWriter responseWriter;
    if (xml) {
      responseWriter = new TobagoResponseXmlWriterImpl(writer, contentType, characterEncoding);
    } else {
      responseWriter = new TobagoResponseWriterImpl(writer, contentType, characterEncoding);
    }
    if (TobagoConfig.getInstance(FacesContext.getCurrentInstance()).getProjectStage() == ProjectStage.Development) {
      return new DebugTobagoResponseWriterWrapper(responseWriter);
View Full Code Here

TOP

Related Classes of org.apache.myfaces.tobago.internal.webapp.TobagoResponseXmlWriterImpl

Copyright © 2018 www.massapicom. 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.