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

wicket-autocomplete may fail after preceeding Ajax request

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.16.0, 7.0.0-M2
    • Fix Version/s: 7.0.0-M3, 6.17.0
    • Component/s: wicket-extensions
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: