AutoCompleteTextField using AjaxFormComponentUpdatingBehavior("onchange") executes twice when selection is made using arrow/enter keys --------------------------------------------------------------------------------------------------------------------------------------
Key: WICKET-1717 URL: https://issues.apache.org/jira/browse/WICKET-1717 Project: Wicket Issue Type: Bug Components: wicket-extensions Affects Versions: 1.3.4 Environment: Windows: Fiefox 2.x/3.0, Opera 9.5 (Works properly in IE 6/7 and Safari 3.1.1) Reporter: Will Hoover AutoCompleteTextField using AjaxFormComponentUpdatingBehavior("onchange") executes twice when selection is made using arrow/enter keys. {code} <input wicket:id="name" id="test-me" type="text" size="140" /> {code} {code} final List<String> choices = new ArrayList<String>(); choices.add("one"); choices.add("two"); choices.add("three"); final AutoCompleteTextField actf = new AutoCompleteTextField("test-me", new Model()) { protected Iterator<String> getChoices(final String searchTextInput) { return choices.iterator(); } }; actf.add(new AjaxFormComponentUpdatingBehavior("onchange") { protected void onUpdate(final AjaxRequestTarget target) { // FIXME : executes twice LOG.debug("Called"); } }); {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.