Download Link doesn't work on 1.5.x

2012-01-19 Thread ricmancio
In Wicket 1.4.x I used Link link = new Link(download){ @Override public void onClick() { *IResourceStream stream = new FileResourceStream(new File(path + fileName));

Re: Download Link doesn't work on 1.5.x

2012-01-19 Thread Martin Grigorov
See the source code of DownloadLink On Thu, Jan 19, 2012 at 10:06 AM, ricmancio ricman...@gmail.com wrote: In Wicket 1.4.x I used Link link       =       new Link(download){        @Override        public void onClick() {        *IResourceStream stream = new FileResourceStream(new

Re: Download Link doesn't work on 1.5.x

2012-01-19 Thread ricmancio
thanks for the suggestion, but now it works also from the documentation: *https://cwiki.apache.org/WICKET/migration-to-wicket-15.html* *Redirect to non wicket or external page* suggests replacing old code : * getRequestCycle().setRequestTarget(new RedirectRequestTarget(/usage.html));* with:

Re: Download Link doesn't work on 1.5.x

2012-01-19 Thread Martin Grigorov
On Thu, Jan 19, 2012 at 10:33 AM, ricmancio ricman...@gmail.com wrote: thanks for the suggestion, but now it works That's good, no ? Is there a question below ? also from the documentation: *https://cwiki.apache.org/WICKET/migration-to-wicket-15.html* *Redirect to non wicket or external

Re: Download Link doesn't work on 1.5.x

2012-01-19 Thread ricmancio
no question, *I replaced:* Link link = new Link(download){ @Override public void onClick() { IResourceStream stream = new FileResourceStream(new File(path + fileName)); getRequestCycle().scheduleRequestHandlerAfterCurrent(new