Author: apatel
Date: Tue Jun 26 19:32:02 2007
New Revision: 551016
URL:
http://svn.apache.org/viewvc?view=rev&rev=551016Log:
Cleaned up sendConfirmBod message.
Modified:
ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java
Modified: ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java?view=diff&rev=551016&r1=551015&r2=551016==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java (original)
+++ ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java Tue Jun 26 19:32:02 2007
@@ -70,6 +70,19 @@
}
+ public static void writeScreenToOutputStream(OutputStream out, String bodyScreenUri, MapStack parameters){
+
+ Writer writer = new OutputStreamWriter(out);
+ ScreenRenderer screens = new ScreenRenderer(writer, parameters, new HtmlScreenRenderer());
+ try {
+ screens.render(bodyScreenUri);
+ } catch (Exception e) {
+ Debug.logError(e, "Error rendering [text/xml]: ", module);
+ }
+
+ }
+
+
public static Map exportMsgFromScreen(DispatchContext dctx, Map serviceContext) {
String bodyScreenUri = (String) serviceContext.remove("bodyScreenUri");
@@ -82,8 +95,8 @@
screens.populateContextForService(dctx, bodyParameters);
screenContext.putAll(bodyParameters);
}
- screenContext.putAll(serviceContext);
- screens.getContext().put("formStringRenderer", foFormRenderer);
+ //screenContext.putAll(serviceContext);
+ //screens.getContext().put("formStringRenderer", foFormRenderer);
try {
screens.render(bodyScreenUri);
} catch (Exception e) {