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

Rename AjaxDownload to AjaxDownloadBehavior

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.0.0-M6
    • Fix Version/s: 8.0.0-M8
    • Component/s: wicket-extensions
    • Labels:
      None

      Description

      Right now file downloaded using

       org.apache.wicket.extensions.ajax.AjaxDownload#initiate(target)
      

      downloads file with name like

      5e7f5bd1-d4dc-4350-ad05-e1aef94cf286.pdf
      

      Could you please provide method giving the user ability to change the file name according to RFC 5987 and also for browsers that do not support this:

      Content-Disposition: attachment;
                           filename="EURO rates";
                           filename*=utf-8''%e2%82%ac%20rates
      

      P.S. I think AjaxDownload class should be named AjaxDownloadBehavior - as all behaviors are

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              jarro06 Jarosław
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: