Wicket
  1. Wicket
  2. WICKET-4204

AutoCompleteTextField+OnChangeAjaxBehavior doesn't fire updates on item selection

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 6.0.0-beta1
    • Component/s: wicket-extensions
    • Labels:
      None

      Description

      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

      1. WICKET-4204.patch
        1 kB
        Andrea Del Bene

        Issue Links

          Activity

            People

            • Assignee:
              Martin Grigorov
              Reporter:
              Xavier López
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development