Wicket
  1. Wicket
  2. WICKET-5332

Autocomplete throws error when initialized in an AjaxLazyLoadPanel

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Implemented
    • Affects Version/s: 6.10.0
    • Fix Version/s: 6.11.0, 7.0.0
    • Component/s: wicket
    • Labels:
      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

        Issue Links

          Activity

          Hide
          Jered Myers added a comment -

          The fix was committed here:
          https://github.com/apache/wicket/commit/bfd4649656f4f51c8d1a164cc14cb5b8dc71f89d

          See https://issues.apache.org/jira/browse/WICKET-5315

          I applied that change to my code and the auto complete works now.

          Show
          Jered Myers added a comment - The fix was committed here: https://github.com/apache/wicket/commit/bfd4649656f4f51c8d1a164cc14cb5b8dc71f89d See https://issues.apache.org/jira/browse/WICKET-5315 I applied that change to my code and the auto complete works now.
          Hide
          Jered Myers added a comment -

          That was it, the build from the latest code has a working auto complete. I will investigate the changes and try to figure out what changed.

          Show
          Jered Myers added a comment - That was it, the build from the latest code has a working auto complete. I will investigate the changes and try to figure out what changed.
          Hide
          Jered Myers added a comment -

          All of the browsers I am trying are failing. I will pull down and build the latest as I am assuming that is what you mean by "6.x branch works fine".

          Show
          Jered Myers added a comment - All of the browsers I am trying are failing. I will pull down and build the latest as I am assuming that is what you mean by "6.x branch works fine".
          Hide
          Jered Myers added a comment -

          Mine is failing setting the Wicket version to 6.10.0 in the POM. I am using Chromium. Let me try other browsers.

          Show
          Jered Myers added a comment - Mine is failing setting the Wicket version to 6.10.0 in the POM. I am using Chromium. Let me try other browsers.
          Hide
          Andrea Del Bene added a comment -

          Running the quickstart with the last source from 6.x branch works fine :-/

          Show
          Andrea Del Bene added a comment - Running the quickstart with the last source from 6.x branch works fine :-/

            People

            • Assignee:
              Martin Grigorov
              Reporter:
              Jered Myers
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development