Author: jonesde
Date: Sun Jan 18 00:21:52 2009
New Revision: 735397
URL:
http://svn.apache.org/viewvc?rev=735397&view=revLog:
Fixed issue with some redundant rendering for lookup fields, reported by Hans Bakker
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=735397&r1=735396&r2=735397&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 Sun Jan 18 00:21:52 2009
@@ -698,6 +698,8 @@
writer.append("\" value=\"Timestamp\"/>");
}
+ this.addAsterisks(writer, context, modelFormField);
+
this.appendTooltip(writer, context, modelFormField);
//appendWhitespace(writer);
@@ -2195,22 +2197,6 @@
writer.append("/>");
- this.addAsterisks(writer, context, modelFormField);
-
- this.makeHyperlinkString(writer, lookupField.getSubHyperlink(), context);
-
- this.appendTooltip(writer, context, modelFormField);
-
- if (ajaxEnabled) {
- appendWhitespace(writer);
- writer.append("<script language=\"JavaScript\" type=\"text/javascript\">");
- appendWhitespace(writer);
- writer.append("ajaxAutoCompleter('" + createAjaxParamsFromUpdateAreas(updateAreas, null, context) + "');");
- appendWhitespace(writer);
- writer.append("</script>");
- }
- appendWhitespace(writer);
-
// add lookup pop-up button
String descriptionFieldName = lookupField.getDescriptionFieldName();
if (UtilValidate.isNotEmpty(descriptionFieldName)) {
@@ -2248,9 +2234,21 @@
this.appendContentUrl(writer, "/images/fieldlookup.gif");
writer.append("\" width=\"15\" height=\"14\" border=\"0\" alt=\"Lookup\"/></a>");
+ this.addAsterisks(writer, context, modelFormField);
+
this.makeHyperlinkString(writer, lookupField.getSubHyperlink(), context);
this.appendTooltip(writer, context, modelFormField);
+ if (ajaxEnabled) {
+ appendWhitespace(writer);
+ writer.append("<script language=\"JavaScript\" type=\"text/javascript\">");
+ appendWhitespace(writer);
+ writer.append("ajaxAutoCompleter('" + createAjaxParamsFromUpdateAreas(updateAreas, null, context) + "');");
+ appendWhitespace(writer);
+ writer.append("</script>");
+ }
+ appendWhitespace(writer);
+
//appendWhitespace(writer);
}