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

AutoCompleteTextField doesn't notify that ajax reqeust returned.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.3.5, 1.4-RC1
    • None
    • wicket-extensions
    • None

    Description

      When AutoCompleteTextField value is empty ( i.eafter writing and deleting characters) AutoCompleteTextField doesn't call wicketGlobalPostCallHandler() and doesn't hide ajax indicator.

      I found the problem in wicket-autocomplete.js:

      function doUpdateChoices(resp){

      // check if the input hasn't been cleared in the meanwhile
      var input=wicketGet(elementId);
      if ((Wicket.Focus.getFocusedElement() != input) || !cfg.showListOnEmptyInput && (input.value==null || input.value==""))

      { hideAutoComplete(); return; ***** <- bug here **** }

      if input.value is empty the function returns without calling:
      Wicket.Log.info("Response processed successfully.");
      Wicket.Ajax.invokePostCallHandlers();
      hideIndicator();

      (which is found and the end of the function)

      Attachments

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              yosib Yosi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: