Author: byersa
Date: Tue Sep 18 00:49:16 2007
New Revision: 576757
URL:
http://svn.apache.org/viewvc?rev=576757&view=revLog:
Added FreeMarkerWorker.getSiteParameters to render method.
This data, particularly "rootDir", is used loading FTL content templates.
I figured it could not hurt normal screen rendering.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenWidgetViewHandler.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenWidgetViewHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenWidgetViewHandler.java?rev=576757&r1=576756&r2=576757&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenWidgetViewHandler.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ScreenWidgetViewHandler.java Tue Sep 18 00:49:16 2007
@@ -30,6 +30,7 @@
import org.ofbiz.base.util.GeneralException;
import org.ofbiz.base.util.UtilJ2eeCompat;
+import org.ofbiz.base.util.template.FreeMarkerWorker;
import org.ofbiz.webapp.view.ViewHandler;
import org.ofbiz.webapp.view.ViewHandlerException;
import org.ofbiz.widget.html.HtmlScreenRenderer;
@@ -88,6 +89,7 @@
ScreenRenderer screens = new ScreenRenderer(writer, null, htmlScreenRenderer);
screens.populateContextForRequest(request, response, servletContext);
// this is the object used to render forms from their definitions
+ FreeMarkerWorker.getSiteParameters(request, screens.getContext());
screens.getContext().put("formStringRenderer", new HtmlFormRenderer(request, response));
screens.render(page);
} catch (IOException e) {