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]