Hello,
I am trying to open this pdf in a new window with no sucess.
protected void onSubmit()
{
final ByteArrayOutputStream pdfout = PDFHelper.genPDF();
final Response response = getRequestCycle().getResponse();
response.setContentType("application/pdf");
response.setContentLength(pdfout.size());
getRequestCycle().setRequestTarget(new IRequestTarget();
{
public void detach(RequestCycle requestCycle) { }
public void respond(RequestCycle requestCycle)
{
try
{
OutputStream stream = response.getOutputStream();
stream.write(pdfout.toByteArray());
stream.flush();
pdfout.close();
}
catch(IOException ex)
.....
I am totally new to wicket (and java) and could really use some help with
this.
Thanks
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Open-PDF-in-a-new-window-tp3676139p3676139.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]