Updated Branches:
  refs/heads/5.4-js-rewrite 5b906dbc5 -> b0d52d3b9

Force attribute autocomplete=off when using the mixin


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/b0d52d3b
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/b0d52d3b
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/b0d52d3b

Branch: refs/heads/5.4-js-rewrite
Commit: b0d52d3b9b572bc99d29fe443f72d4e5152f2e2c
Parents: 5b906db
Author: Howard M. Lewis Ship <[email protected]>
Authored: Mon Nov 19 16:02:12 2012 -0800
Committer: Howard M. Lewis Ship <[email protected]>
Committed: Mon Nov 19 16:02:12 2012 -0800

----------------------------------------------------------------------
 .../tapestry5/corelib/mixins/Autocomplete.java     |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/b0d52d3b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/Autocomplete.java
----------------------------------------------------------------------
diff --git 
a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/Autocomplete.java
 
b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/Autocomplete.java
index 54c349a..4ea8a3f 100644
--- 
a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/Autocomplete.java
+++ 
b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/Autocomplete.java
@@ -53,6 +53,7 @@ import java.util.List;
  * @tapestrydoc
  */
 @Events(EventConstants.PROVIDE_COMPLETIONS)
+@MixinAfter
 public class Autocomplete
 {
     static final String EVENT_NAME = "autocomplete";
@@ -90,6 +91,7 @@ public class Autocomplete
     /**
      * If given, then the autocompleter will support multiple input values, 
seperated by any of the individual
      * characters in the string.
+     *
      * @deprecated Deprecated in 5.4 with no replacement.
      */
     @Parameter(defaultPrefix = BindingConstants.LITERAL)
@@ -103,6 +105,11 @@ public class Autocomplete
         deprecationWarning.ignoredComponentParameters(resources, "frequency", 
"tokens");
     }
 
+    void beginRender(MarkupWriter writer)
+    {
+        writer.attributes("autocomplete", "off");
+    }
+
     void afterRender()
     {
         Link link = resources.createEventLink(EVENT_NAME);

Reply via email to