myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Youngstrom (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Commented: (MYFACES-356) AddResource.writeWithFullHeader() writing old header twice
Date Sat, 23 Jul 2005 00:15:49 GMT
    [ http://issues.apache.org/jira/browse/MYFACES-356?page=comments#action_12316549 ] 

Mike Youngstrom commented on MYFACES-356:
-----------------------------------------

Here is the patch.

Index: C:/Projects/PointBlank5/current/tomahawk/src/java/org/apache/myfaces/component/html/util/AddResource.java
===================================================================
--- C:/Projects/PointBlank5/current/tomahawk/src/java/org/apache/myfaces/component/html/util/AddResource.java
(revision 224394)
+++ C:/Projects/PointBlank5/current/tomahawk/src/java/org/apache/myfaces/component/html/util/AddResource.java
(working copy)
@@ -345,8 +345,6 @@
         if(insertPosition>=0 && addHeaderTags)
             writer.write("</head>");
 
-        insertPosition=0;
-
         writer.write( originalResponse.substring(insertPosition) );
     }
 


> AddResource.writeWithFullHeader() writing old header twice
> ----------------------------------------------------------
>
>          Key: MYFACES-356
>          URL: http://issues.apache.org/jira/browse/MYFACES-356
>      Project: MyFaces
>         Type: Bug
>     Reporter: Mike Youngstrom

>
> The header is being displayed twice when getting processed by AddResource.
> The problem is that revision 210067 added insertPosition=0; before writing the rest of
the page.
> I've created a patch.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message