Okay, cool. I did see this, but one of the things I was perplexed about is how to get an IResource into the AjaxDownloadBehavior at the time of onClick. I guess in onClick I could set an ivar to some resource and model load from there. Any other ideas?
-Lon On Wed, Apr 18, 2018 at 9:53 PM, Sven Meier <s...@meiers.net> wrote: > Hi, > > you'll have to update your page first and then initiate the download. > > For Ajax you can use: > https://github.com/apache/wicket/blob/master/wicket- > extensions/src/main/java/org/apache/wicket/extensions/ajax/ > AjaxDownloadBehavior.java > > For Wicket<8 you'll find its predecessor AjaxDownload on the web. > > Have fun > Sven > > Am 19. April 2018 02:20:25 MESZ schrieb Lon Varscsak < > lon.varsc...@gmail.com>: > >Hey all, > > > >I've got a Link that I use to generate and download a report. I'm > >using a > >ResourceStreamRequestHandler and > >getRequestCycle().scheduleRequestHandlerAfterCurrent which works fine, > >except that I was expecting my current request to finish as if it were > >a > >regular link. In this case, I'd want it to refresh the page I'm on, > >but it > >doesn't do that. > > > >Anyway to accomplish this? > > > >-Lon >