[OFBiz] SVN: r5909 - trunk/framework/widget/src/org/ofbiz/widget/html

jonesde at svn.ofbiz.org jonesde at svn.ofbiz.org
Tue Oct 4 03:41:05 EDT 2005


Author: jonesde
Date: 2005-10-04 02:41:02 -0500 (Tue, 04 Oct 2005)
New Revision: 5909

Modified:
   trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
Log:
Fixed a number of places where for different field types the default-value was being ignored

Modified: trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
===================================================================
--- trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java	2005-10-04 06:44:25 UTC (rev 5908)
+++ trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java	2005-10-04 07:41:02 UTC (rev 5909)
@@ -339,7 +339,7 @@
         buffer.append(modelFormField.getParameterName(context));
         buffer.append('"');
 
-        String value = modelFormField.getEntry(context);
+        String value = modelFormField.getEntry(context, dateTimeField.getDefaultValue(context));
         if (UtilValidate.isNotEmpty(value)) {
             buffer.append(" value=\"");
             buffer.append(value);
@@ -1212,7 +1212,7 @@
         buffer.append(modelFormField.getParameterName(context));
         buffer.append('"');
 
-        String value = modelFormField.getEntry(context);
+        String value = modelFormField.getEntry(context, textFindField.getDefaultValue(context));
         if (UtilValidate.isNotEmpty(value)) {
             buffer.append(" value=\"");
             buffer.append(value);
@@ -1304,7 +1304,7 @@
         buffer.append(modelFormField.getParameterName(context));
         buffer.append("_fld0_value\"");
 
-        String value = modelFormField.getEntry(context);
+        String value = modelFormField.getEntry(context, rangeFindField.getDefaultValue(context));
         if (UtilValidate.isNotEmpty(value)) {
             buffer.append(" value=\"");
             buffer.append(value);
@@ -1455,7 +1455,7 @@
         buffer.append(modelFormField.getParameterName(context));
         buffer.append("_fld0_value\"");
 
-        String value = modelFormField.getEntry(context);
+        String value = modelFormField.getEntry(context, dateFindField.getDefaultValue(context));
         if (UtilValidate.isNotEmpty(value)) {
             buffer.append(" value=\"");
             buffer.append(value);
@@ -1625,7 +1625,7 @@
         buffer.append(modelFormField.getParameterName(context));
         buffer.append('"');
 
-        String value = modelFormField.getEntry(context);
+        String value = modelFormField.getEntry(context, lookupField.getDefaultValue(context));
         if (UtilValidate.isNotEmpty(value)) {
             buffer.append(" value=\"");
             buffer.append(value);



More information about the Svn mailing list