myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svieu...@apache.org
Subject cvs commit: incubator-myfaces/src/components/org/apache/myfaces/custom/buffer HtmlResponseWriterImpl.java
Date Mon, 31 Jan 2005 17:43:11 GMT
svieujot    2005/01/31 09:43:11

  Modified:    src/myfaces/org/apache/myfaces/renderkit/html
                        HtmlResponseWriterImpl.java
               src/components/org/apache/myfaces/custom/buffer
                        HtmlResponseWriterImpl.java
  Log:
  Bugfix for HtmlResponseWriterImpl.write(str, offset, length).
  
  Revision  Changes    Path
  1.36      +6 -3      incubator-myfaces/src/myfaces/org/apache/myfaces/renderkit/html/HtmlResponseWriterImpl.java
  
  Index: HtmlResponseWriterImpl.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/myfaces/org/apache/myfaces/renderkit/html/HtmlResponseWriterImpl.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- HtmlResponseWriterImpl.java	31 Jan 2005 17:03:54 -0000	1.35
  +++ HtmlResponseWriterImpl.java	31 Jan 2005 17:43:11 -0000	1.36
  @@ -41,6 +41,9 @@
    * @author Anton Koinov
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.36  2005/01/31 17:43:11  svieujot
  + * Bugfix for HtmlResponseWriterImpl.write(str, offset, length).
  + *
    * Revision 1.35  2005/01/31 17:03:54  svieujot
    * Resynchronize the HtmlResponseWriterImpl from the renderkit, and from the x:buffer component.
    *
  @@ -517,7 +520,7 @@
       public void write(String str, int off, int len) throws IOException
       {
           closeStartTagIfNecessary();
  -        String strValue = str.substring(off, len);
  +        String strValue = str.substring(off, off+len);
           _writer.write(UnicodeEncoder.encode(strValue, false, false));
       }
   
  
  
  
  1.3       +6 -2      incubator-myfaces/src/components/org/apache/myfaces/custom/buffer/HtmlResponseWriterImpl.java
  
  Index: HtmlResponseWriterImpl.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/components/org/apache/myfaces/custom/buffer/HtmlResponseWriterImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HtmlResponseWriterImpl.java	31 Jan 2005 17:03:54 -0000	1.2
  +++ HtmlResponseWriterImpl.java	31 Jan 2005 17:43:11 -0000	1.3
  @@ -16,6 +16,7 @@
   package org.apache.myfaces.custom.buffer;
   
   import org.apache.myfaces.config.MyfacesConfig;
  +import org.apache.myfaces.renderkit.html.HTML;
   import org.apache.myfaces.renderkit.html.util.DummyFormResponseWriter;
   import org.apache.myfaces.renderkit.html.util.DummyFormUtils;
   import org.apache.myfaces.renderkit.html.util.HTMLEncoder;
  @@ -40,6 +41,9 @@
    * @author Anton Koinov
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.3  2005/01/31 17:43:11  svieujot
  + * Bugfix for HtmlResponseWriterImpl.write(str, offset, length).
  + *
    * Revision 1.2  2005/01/31 17:03:54  svieujot
    * Resynchronize the HtmlResponseWriterImpl from the renderkit, and from the x:buffer component.
    *
  @@ -468,7 +472,7 @@
       public void write(String str, int off, int len) throws IOException
       {
           closeStartTagIfNecessary();
  -        String strValue = str.substring(off, len);
  +        String strValue = str.substring(off, off+len);
           _writer.write(UnicodeEncoder.encode(strValue, false, false));
       }
   
  
  
  

Mime
View raw message