Author: jleroux
Date: Fri Feb 13 10:58:24 2009
New Revision: 744061
URL:
http://svn.apache.org/viewvc?rev=744061&view=revLog:
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) {