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

Success handler not called when redirecting with Ajax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.9
    • 1.4.11, 1.5-M2.1
    • wicket
    • None

    Description

      We put an ajax indicator on our page. This adds the wicket.show('indicator') method before the call to wicketAjaxGet.
      To the wicketAjaxGet a success and failure handler are attached that call the wicket.hide methods.

      We have a button that redirects to a file, so the page doesn't change. The browser just pops up a file download dialog. The thing is that the ajax indicator isn't removed.

      There are no calls to successHandler or failureHandler for redirects only for loadedCalls.

      I attached a patch that adds a call to the successHandler after the this.done() when a redirect is asked for. In most of the cases the successHandler is an empty function.

      Attachments

        1. wicket-ajax.patch
          2 kB
          Louis Letourneau

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              lletourn Louis Letourneau
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: