click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From take...@apache.org
Subject svn commit: r767401 - /incubator/click/trunk/click/extras/src/org/apache/click/extras/control/HiddenList.java
Date Wed, 22 Apr 2009 08:01:54 GMT
Author: takezoe
Date: Wed Apr 22 08:01:54 2009
New Revision: 767401

URL: http://svn.apache.org/viewvc?rev=767401&view=rev
Log:
Fixed rendering bug. Implements render() instead of toString().

Modified:
    incubator/click/trunk/click/extras/src/org/apache/click/extras/control/HiddenList.java

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/HiddenList.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/HiddenList.java?rev=767401&r1=767400&r2=767401&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/HiddenList.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/HiddenList.java
Wed Apr 22 08:01:54 2009
@@ -142,14 +142,13 @@
     }
 
     /**
-     * Return the HTML rendered Hidden Fields string.
+     * Render the HTML representation of the HiddenField.
      *
-     * @see Object#toString()
+     * @see org.apache.click.Control#render(org.apache.click.util.HtmlStringBuffer)
      *
-     * @return the HTML rendered Hidden Fields string
+     * @param buffer the specified buffer to render the control's output to
      */
-    public String toString() {
-        HtmlStringBuffer buffer = new HtmlStringBuffer();
+    public void render(HtmlStringBuffer buffer) {
         List values = getValues();
 
         for (int i = 0; i < values.size(); i++) {
@@ -160,8 +159,6 @@
             buffer.appendAttribute("value", values.get(i));
             buffer.elementEnd();
         }
-
-        return buffer.toString();
     }
 
 }



Mime
View raw message