Author: doogie
Date: Sun Jun 26 18:07:38 2011
New Revision: 1139855
URL:
http://svn.apache.org/viewvc?rev=1139855&view=revLog:
FIX: Fix rendering of forms that have no fields defined.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java?rev=1139855&r1=1139854&r2=1139855&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java Sun Jun 26 18:07:38 2011
@@ -1490,7 +1490,10 @@ public class MacroFormRenderer implement
sr.append("\" style=\"");
sr.append(FlexibleStringExpander.expandString(modelForm.getDefaultTableStyle(), context));
sr.append("\" columnStyles=[");
- sr.append(columnStyleListString);
+ if (UtilValidate.isNotEmpty(columnStyleListString)) {
+ // this is a fix for forms with no fields
+ sr.append(columnStyleListString);
+ }
sr.append("] />");
executeMacro(writer, sr.toString());