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

wicket-autocomplete may fail after preceeding Ajax request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.16.0, 7.0.0-M2
    • 7.0.0-M3, 6.17.0
    • wicket-extensions
    • None

    Description

      The following processing sequence leads to a JavaScript error:

      • form is shown including an autoCompleteTextField
      • user enters criteria and immediately presses enter
      • actualUpdateChoices() is scheduled by the throttler
      • form is submitted via ajax
      • autoCompleteTextField is removed from DOM
      • throttler executes actualUpdateChoices()
      • wicket-autocomplete fails with precondition, since element is no longer in DOM:

      var elementVal = Wicket.$(elementId).value;

      Attachments

        Activity

          People

            svenmeier Sven Meier
            svenmeier Sven Meier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: