See the source code of DownloadLink On Thu, Jan 19, 2012 at 10:06 AM, ricmancio <[email protected]> wrote: > In Wicket 1.4.x I used > > Link link = new Link("download"){ > > @Override > public void onClick() { > > *IResourceStream stream = new FileResourceStream(new File(path + > fileName)); > getRequestCycle().setRequestTarget(new > ResourceStreamRequestTarget(stream) > .setFileName(fileName));* > } > }; > * > After migration on 1.5.x what code should I use?* > > I'm trying with: > > .... > *getRequestCycle().scheduleRequestHandlerAfterCurrent(new > ResourceStreamRequestHandler(stream) > .setFileName(fileName));* > > ... > but doesn't work > > tnk > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Download-Link-doesn-t-work-on-1-5-x-tp4309507p4309507.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
-- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
