[ https://issues.apache.org/jira/browse/WICKET-1717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608517#action_12608517 ]
whoover.nemours edited comment on WICKET-1717 at 6/26/08 10:39 AM: --------------------------------------------------------------- Looks like the linked issue is the opposite to https://issues.apache.org/jira/browse/WICKET-1280 (mouse click causes execution twice). was (Author: whoover.nemours): Looks like the linked issue is the opposite to this one (mouse click causes execution twice). > 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.