You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2009/02/09 21:16:15 UTC

svn commit: r742716 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormWrapper.java

Author: jleroux
Date: Mon Feb  9 20:16:15 2009
New Revision: 742716

URL: http://svn.apache.org/viewvc?rev=742716&view=rev
Log:
Fix an issue about Delivery Schedule Info reported on user ML. I checked it's fine in other cases.

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormWrapper.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormWrapper.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormWrapper.java?rev=742716&r1=742715&r2=742716&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormWrapper.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormWrapper.java Mon Feb  9 20:16:15 2009
@@ -103,7 +103,7 @@
     }
     
     @SuppressWarnings("unchecked")
-    public String renderFormString(Object contextStack) throws IOException {
+    public StringWriter renderFormString(Object contextStack) throws IOException {
         if (contextStack instanceof MapStack) {
             return renderFormString((MapStack) contextStack);
         } else {
@@ -111,18 +111,18 @@
             return renderFormString();
         }
     }
-    public String renderFormString(MapStack<String> contextStack) throws IOException {
+    public StringWriter renderFormString(MapStack<String> contextStack) throws IOException {
         // create a new context with the current context on the bottom
         contextStack.push(this.context);
         StringWriter buffer = new StringWriter();
         modelForm.renderFormString(buffer, contextStack, renderer);
         contextStack.pop();
-        return buffer.toString();
+        return buffer;
     }
-    public String renderFormString() throws IOException {
+    public StringWriter renderFormString() throws IOException {
         StringWriter buffer = new StringWriter();
         modelForm.renderFormString(buffer, context, renderer);
-        return buffer.toString();
+        return buffer;
     }
 
     /**