myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1622116 - /myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlScriptRenderer.java
Date Tue, 02 Sep 2014 20:46:50 GMT
Author: lu4242
Date: Tue Sep  2 20:46:49 2014
New Revision: 1622116

URL: http://svn.apache.org/r1622116
Log:
MYFACES-3914 HtmlScriptRenderer marks stylesheet as rendered (thanks to Michal Petrov for
provide this patch)

Modified:
    myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlScriptRenderer.java

Modified: myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlScriptRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlScriptRenderer.java?rev=1622116&r1=1622115&r2=1622116&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlScriptRenderer.java
(original)
+++ myfaces/core/branches/2.0.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlScriptRenderer.java
Tue Sep  2 20:46:49 2014
@@ -264,7 +264,7 @@ public class HtmlScriptRenderer extends 
 
             // Rendering resource
             ResourceUtils.markScriptAsRendered(facesContext, libraryName, resourceName);
-            ResourceUtils.markStylesheetAsRendered(facesContext, resource.getLibraryName(),
resource.getResourceName());
+            ResourceUtils.markScriptAsRendered(facesContext, resource.getLibraryName(), resource.getResourceName());
             ResponseWriter writer = facesContext.getResponseWriter();
             writer.startElement(HTML.SCRIPT_ELEM, component);
 // We can't render the content type, because usually it returns "application/x-javascript"



Mime
View raw message