You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2010/01/19 07:36:54 UTC

[jira] Resolved: (WICKET-1717) AutoCompleteTextField using AjaxFormComponentUpdatingBehavior("onchange") executes twice when selection is made using arrow/enter keys

     [ https://issues.apache.org/jira/browse/WICKET-1717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1717.
-----------------------------------

    Resolution: Duplicate
      Assignee: Igor Vaynberg

duplicate of WICKET-1280 

> 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
>            Assignee: Igor Vaynberg
>
> 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.