svn commit: r744061 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/HtmlWidget.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r744061 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/HtmlWidget.java

jleroux@apache.org
Author: jleroux
Date: Fri Feb 13 10:58:24 2009
New Revision: 744061

URL: http://svn.apache.org/viewvc?rev=744061&view=rev
Log:
This fix "Encoding issue in screenFop" https://issues.apache.org/jira/browse/OFBIZ-2183 - OFBIZ-2183

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/HtmlWidget.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/HtmlWidget.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/HtmlWidget.java?rev=744061&r1=744060&r2=744061&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/HtmlWidget.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/HtmlWidget.java Fri Feb 13 10:58:24 2009
@@ -192,7 +192,12 @@
                 }
                 
                 //FreeMarkerWorker.renderTemplateAtLocation(location, context, writer);
-                Template template = FreeMarkerWorker.getTemplate(location, specialTemplateCache, specialConfig);
+                Template template = null;
+                if (location.endsWith(".fo.ftl")) { // FOP can't render correctly escaped characters
+                    template = FreeMarkerWorker.getTemplate(location);
+                } else {
+                    template = FreeMarkerWorker.getTemplate(location, specialTemplateCache, specialConfig);
+                }
                 FreeMarkerWorker.renderTemplate(template, context, writer);
                 
                 if (insertWidgetBoundaryComments) {