Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 77024 invoked from network); 23 Jul 2005 00:16:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jul 2005 00:16:05 -0000 Received: (qmail 82048 invoked by uid 500); 23 Jul 2005 00:16:04 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 82022 invoked by uid 500); 23 Jul 2005 00:16:03 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 82009 invoked by uid 99); 23 Jul 2005 00:16:03 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2005 17:15:52 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 43E39D2 for ; Sat, 23 Jul 2005 02:15:49 +0200 (CEST) Message-ID: <52609881.1122077749276.JavaMail.jira@ajax.apache.org> Date: Sat, 23 Jul 2005 02:15:49 +0200 (CEST) From: "Mike Youngstrom (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-356) AddResource.writeWithFullHeader() writing old header twice In-Reply-To: <301993209.1122077085726.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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(""); - 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