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

AjaxSelfUpdatingTimer stops working after ajax download

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.18.0
    • 6.20.0, 7.0.0-M6
    • wicket
    • None
    • Linux

    Description

      I've encountered a strange behavior related to AjaxSelfUpdatingTimerBahavior. It triggers normally until I click a link that downloads a dynamic resource. The ajax download link is constructed using the recommendations from:

      https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

      The problem seems to be related to:
      target.appendJavaScript("setTimeout(\"window.location.href='"
      + url + "'\", 100);");
      from ajax download initiate, but if i comment it the download doesn't work
      anymore.

      Attachments

        1. timer test.zip
          2 kB
          Elvis Ciocoiu

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              elvis.ciocoiu Elvis Ciocoiu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: