[ https://issues.apache.org/jira/browse/WICKET-4204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147790#comment-13147790 ]
Andrea Del Bene commented on WICKET-4204: ----------------------------------------- When an item of the list is selected, the event "onclick" is passed to AutoCompleteTextField's onchange by the click handler defined at line 578 of wicket-autocomplete.js. A possible solution is to trigger a new event which is not ignored by AutoCompleteTextField. See patch. > AutoCompleteTextField+OnChangeAjaxBehavior doesn't fire updates on item > selection > --------------------------------------------------------------------------------- > > Key: WICKET-4204 > URL: https://issues.apache.org/jira/browse/WICKET-4204 > Project: Wicket > Issue Type: Bug > Components: wicket-extensions > Affects Versions: 1.5.2 > Reporter: Xavier López > Attachments: WICKET-4204.patch > > > When adding an OnChangeAjaxBehavior to an AutoCompleteTextField, onUpdate() > doesn't fire when selecting an item from the autocomplete item list. > It is firing when using an AjaxFormComponentUpdatingBehavior. > wicket-autocomplete.js seems to be using the onchange event handler, which is > cleared by Wicket.ChangeHandler. > Maybe obj.onchangeoriginal should be checked in first place in > wicket-autocomplete.js > See this related discussion at SO for context: > http://stackoverflow.com/q/8047769/851811 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira