Author: jacopoc
Date: Sun Jun 24 23:56:50 2007
New Revision: 550387
URL:
http://svn.apache.org/viewvc?view=rev&rev=550387Log:
Hidden and ignored fields (and the form around them) are rendered only if there is at least one input field.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java?view=diff&rev=550387&r1=550386&r2=550387==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java Sun Jun 24 23:56:50 2007
@@ -1425,7 +1425,8 @@
formStringRenderer.renderFormatItemRowCellClose(buffer, localContext, this, modelFormField);
}
- if (hiddenIgnoredFieldList.size() > 0 || innerFormFields.size() > 0) {
+ // The form cell is rendered only if there is at least an input field
+ if (innerFormFields.size() > 0) {
// render the "form" cell
formStringRenderer.renderFormatItemRowFormCellOpen(buffer, localContext, this); // TODO: colspan