Hi,
what to add into onClick() in DownloadLink if I need return to client generated
.pdf
stream as a .pdf file?
My code:
IModel pdfStreamModel = new AbstractReadOnlyModel()
{
public Object getObject()
{
return getPdfStreamBytes();
}
};
DownloadLink downloadLink = new DownloadLink("downloadLink", pdfStreamModel,
getPdfDocumentName())
{
public void onClick()
{
System.out.println("clicking works");
}
};
Model works, DownloadLink is added into my markup. But I can't find any example
how to deal
code into onClick() in DownloadLink in a way it will return my generated .pdf
stream in model.
Thank folks,
MJ
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]