Re: create link to pdf created on the fly

2015-04-07 Thread Chris
Hi Martin, thanks a lot, that worked! Chris > Am 07.04.2015 um 08:52 schrieb Martin Grigorov : > > Hi, > > Check ResourceLink component. > > Martin Grigorov > Freelancer, available for hire! > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Tue, Apr 7, 2015 at 2:10 AM

Re: create link to pdf created on the fly

2015-04-06 Thread Martin Grigorov
Hi, Check ResourceLink component. Martin Grigorov Freelancer, available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Apr 7, 2015 at 2:10 AM, Chris wrote: > Hi all, > > I would like to create a download link to a PDF which is generated on the > fly. > > How ca

Re: create link to pdf created on the fly

2015-04-06 Thread Christoph Läubrich
Is there any reason why you can't use a static mounted resource (with some page parameter if neccessary)? This has several advantages e.g. leveraging browser caching, no need for statefull link etc... Am 07.04.2015 01:10, schrieb Chris: Hi all, I would like to create a download link to a PDF

create link to pdf created on the fly

2015-04-06 Thread Chris
Hi all, I would like to create a download link to a PDF which is generated on the fly. How can I transform the ByteArrayResource into an IResource Stream? Thanks, Chris Link pdfLink = new Link("linkPdf") { @Override public void onClick() { final OutputSt