You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/10/19 15:37:36 UTC
svn commit: r586446 -
/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
Author: jacopoc
Date: Fri Oct 19 06:37:35 2007
New Revision: 586446
URL: http://svn.apache.org/viewvc?rev=586446&view=rev
Log:
Applied patch from Marco Risaliti to fill empty table cells with the character: this wfixes the ugly layout in IE.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java?rev=586446&r1=586445&r2=586446&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java Fri Oct 19 06:37:35 2007
@@ -167,7 +167,13 @@
String description = displayField.getDescription(context);
//Replace new lines with <br/>
description = description.replaceAll("\n", "<br/>");
- buffer.append(description);
+
+ if (UtilValidate.isEmpty(description)) {
+ this.renderFormatEmptySpace(buffer, context, modelFormField.getModelForm());
+ } else {
+ buffer.append(description);
+ }
+
if (str.length() > 0) {
buffer.append("</span>");
}