Author: bibryam
Date: Fri Jul 11 01:58:29 2008
New Revision: 675872
URL:
http://svn.apache.org/viewvc?rev=675872&view=revLog:
Fixed a bug reported in Jira Issue OFBIZ-1869 "FOPException"
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/output/OutputServices.java
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/output/OutputServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/output/OutputServices.java?rev=675872&r1=675871&r2=675872&view=diff==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/output/OutputServices.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/output/OutputServices.java Fri Jul 11 01:58:29 2008
@@ -33,7 +33,7 @@
import org.ofbiz.service.ServiceUtil;
import org.ofbiz.webapp.view.ApacheFopWorker;
import org.ofbiz.widget.fo.FoFormRenderer;
-import org.ofbiz.widget.html.HtmlScreenRenderer;
+import org.ofbiz.widget.fo.FoScreenRenderer;
import org.ofbiz.widget.screen.ScreenRenderer;
import org.xml.sax.SAXException;
@@ -90,7 +90,7 @@
public final static String module = OutputServices.class.getName();
- protected static final HtmlScreenRenderer htmlScreenRenderer = new HtmlScreenRenderer();
+ protected static final FoScreenRenderer foScreenRenderer = new FoScreenRenderer();
protected static final FoFormRenderer foFormRenderer = new FoFormRenderer();
public static Map sendPrintFromScreen(DispatchContext dctx, Map serviceContext) {
@@ -120,7 +120,7 @@
Writer writer = new StringWriter();
// substitute the freemarker variables...
- ScreenRenderer screensAtt = new ScreenRenderer(writer, screenContextTmp, htmlScreenRenderer);
+ ScreenRenderer screensAtt = new ScreenRenderer(writer, screenContextTmp, foScreenRenderer);
screensAtt.populateContextForService(dctx, screenContext);
screenContextTmp.putAll(screenContext);
screensAtt.getContext().put("formStringRenderer", foFormRenderer);
@@ -237,7 +237,7 @@
Writer writer = new StringWriter();
// substitute the freemarker variables...
- ScreenRenderer screensAtt = new ScreenRenderer(writer, screenContextTmp, htmlScreenRenderer);
+ ScreenRenderer screensAtt = new ScreenRenderer(writer, screenContextTmp, foScreenRenderer);
screensAtt.populateContextForService(dctx, screenContext);
screenContextTmp.putAll(screenContext);
screensAtt.getContext().put("formStringRenderer", foFormRenderer);