create a resource and register it in shared resources, this will allow you to create a stable url. the filename and reportdata you will have to pass on the url.
-igor On Mon, Sep 12, 2011 at 2:25 PM, Alec Swan <alecs...@gmail.com> wrote: > Hello, > > We use a templating engine which generates parts of our pages. > Templates can be included on any page. We need the engine to be able > to generate a link which will display a report when clicked. I tried > using the following code, but it returns null from > RequestTarget.urlFor(..): > > public String getReportLink() { > return "" + RequestCycle.get().urlFor(new > DownloadCsvRequestTarget(fileName, reportData)); > } > > Where DownloadCsvRequestTarget implements respond() method to write > reportData our in CSV format. > > Thanks, > > Alec > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org