click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r1093958 - /click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
Date Sat, 16 Apr 2011 10:38:09 GMT
Author: sabob
Date: Sat Apr 16 10:38:08 2011
New Revision: 1093958

URL: http://svn.apache.org/viewvc?rev=1093958&view=rev
Log:
Fixed AutoCompleteTextField extra parameters. CLK-759

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

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java?rev=1093958&r1=1093957&r2=1093958&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
(original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
Sat Apr 16 10:38:08 2011
@@ -26,7 +26,6 @@ import java.util.Map.Entry;
 import org.apache.click.Behavior;
 import org.apache.click.Context;
 import org.apache.click.Control;
-import org.apache.click.Page;
 import org.apache.click.ActionResult;
 import org.apache.click.ajax.AjaxBehavior;
 import org.apache.click.ajax.DefaultAjaxBehavior;
@@ -338,18 +337,19 @@ public abstract class AutoCompleteTextFi
             String id  = getId();
 
             // Include the field id as a parameter
-            buffer.append(",{parameters: '").append(id).append("=1'");
+            buffer.append(",{parameters: '").append(id).append("=1");
 
             if (hasParameters()) {
 
                 for (Entry<String, Object> entry : getParameters().entrySet()) {
                     // Add additional parameters
-                    buffer.append("&amp;");
+                    buffer.append("&");
                     buffer.append(entry.getKey());
                     buffer.append("=");
                     buffer.append(entry.getValue());
                 }
             }
+            buffer.append("'");
 
             if (StringUtils.isNotEmpty(getAutoCompleteOptions())) {
                 buffer.append(",").append(getAutoCompleteOptions());



Mime
View raw message