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

Autocomplete throws error when initialized in an AjaxLazyLoadPanel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • 6.10.0
    • 6.11.0, 7.0.0-M1
    • wicket
    • None

    Description

      When an autocomplete is added to a page in an AjaxLazyLoadPanel, the Wicket AJAX Debug window displays the error "ERROR: Cannot find element with id: null" and the autocomplete does not work. The problem appears to be that the call to initialize the autocomplete is performed prior to the text field being added to the DOM.

      I am attaching a quickstart that replicates the problem

      Attachments

        1. autocomplete.zip
          36 kB
          Jered Myers

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              jeredm@maplewoodsoftware.com Jered Myers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: