svn commit: r560938 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r560938 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java

jacopoc
Author: jacopoc
Date: Mon Jul 30 05:27:35 2007
New Revision: 560938

URL: http://svn.apache.org/viewvc?view=rev&rev=560938
Log:
Two small fixes to the html generated by the form widget renderer.

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?view=diff&rev=560938&r1=560937&r2=560938
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java Mon Jul 30 05:27:35 2007
@@ -164,8 +164,8 @@
             buffer.append(str);
         }
         String description = displayField.getDescription(context);
-        //Replace new lines with <br>
-        description = description.replaceAll("\n", "<br>");
+        //Replace new lines with <br/>
+        description = description.replaceAll("\n", "<br/>");
         buffer.append(description);
         if (str.length() > 0) {
             buffer.append("</span>");
@@ -525,7 +525,7 @@
             // create a hidden field for the composite type, which is a Timestamp
             buffer.append("<input type=\"hidden\" name=\"");
             buffer.append(UtilHttp.makeCompositeParam(paramName, "compositeType"));
-            buffer.append("\" value=\"Timestamp\">");
+            buffer.append("\" value=\"Timestamp\"/>");
         }
 
         this.appendTooltip(buffer, context, modelFormField);