click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r761696 - /incubator/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
Date Fri, 03 Apr 2009 14:34:35 GMT
Author: sabob
Date: Fri Apr  3 14:34:34 2009
New Revision: 761696

URL: http://svn.apache.org/viewvc?rev=761696&view=rev
Log:
rolled back CLK-508

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

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java?rev=761696&r1=761695&r2=761696&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
Fri Apr  3 14:34:34 2009
@@ -264,14 +264,14 @@
             String contextPath = context.getRequest().getContextPath();
 
             JsScript script = new JsScript();
-            script.setId(fieldName + "_autocomplete");
+            script.setId(fieldId + "_autocomplete");
             HtmlStringBuffer buffer = new HtmlStringBuffer(150);
             buffer.append("addLoadEvent(function() { new Ajax.Autocompleter(");
             buffer.append("'").append(fieldId).append("'");
             buffer.append(",'").append(fieldId).append("_auto_complete_div'");
             buffer.append(",'").append(contextPath).append(page.getPath()).append("'");
             buffer.append(",").append(getAutoCompleteOptions()).append(");})");
-
+            script.setContent(buffer);
             headElements.add(script);
         }
         return headElements;



Mime
View raw message