Martijn
On 2/15/06,
Ingram Chen <[EMAIL PROTECTED]> wrote:
Dear all,
I would like to download iText pdf document via Link component:
new Link("download") {
public void onClick() {
WebResponse response = (WebResponse) getResponse();
response.setHeader(....);
response.setContentType(....);
OutputStream outputStream = response.getOutputStream();
outputStream.write(myDataBytes);
outputStream.flush();
}
}
But this does not work. I search wiki but there is no information how to do
this. Could someone give me some suggestions ?
--
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen
--
Living a wicket life...
Martijn Dashorst - http://www.jroller.com/page/dashorst
Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1