You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/05/13 20:10:45 UTC

svn commit: r943960 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBodyRenderer.java

Author: lu4242
Date: Thu May 13 18:10:45 2010
New Revision: 943960

URL: http://svn.apache.org/viewvc?rev=943960&view=rev
Log:
TOMAHAWK-1509 t:documentBody should call ExtensionsPhaseListener.writeCodeBeforeBodyEnd() only for AddResource instances that does not buffer

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBodyRenderer.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBodyRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBodyRenderer.java?rev=943960&r1=943959&r2=943960&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBodyRenderer.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/document/DocumentBodyRenderer.java Thu May 13 18:10:45 2010
@@ -75,9 +75,9 @@ public class DocumentBodyRenderer extend
             // buffering, because when it is buffered, the buffer is responsible
             // of render it.
             ExtensionsPhaseListener.writeCodeBeforeBodyEnd(facesContext);
-        }
 
-        // fake string, so the ExtensionsPhaseListener will not create the javascript again
-        facesContext.getExternalContext().getRequestMap().put(ExtensionsPhaseListener.ORG_APACHE_MYFACES_MY_FACES_JAVASCRIPT, "");
+            // fake string, so the ExtensionsPhaseListener will not create the javascript again
+            facesContext.getExternalContext().getRequestMap().put(ExtensionsPhaseListener.ORG_APACHE_MYFACES_MY_FACES_JAVASCRIPT, "");
+        }
     }
 }