Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4204

AutoCompleteTextField+OnChangeAjaxBehavior doesn't fire updates on item selection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.2
    • 6.0.0-beta1
    • wicket-extensions
    • 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

      Attachments

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

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              xavilope Xavier López
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: