Hi *,
i've read the threads for jasperreports-theme. But i don't get a glow for my
task.
I display a button at the end of a checkout process. This button represents
a "Get as pdf".
So it should be clicked and then the report should be generated. If
generation succeeded zhe report should be managed with the "download"
dialog.
I do it this way until now, but my report is empty.
Report located at /reports/report.jasper <--- compiled template
public class ConclusionPanel extends Panel {
public ConclusionPanel(String pId, IModel pModel) {
super(pId, pModel);
Label thx = new Label("thx", new ResourceModel("label.thx"));
add(thx);
ServletContext context = ((WebApplication)
getApplication()).getServletContext();
final File reportFile = new
File(context.getRealPath("/reports/report.jasper"));
final JRResource pdfResource = new JRPdfResource(reportFile);
Link pdf = new ResourceLink("pdf", pdfResource) {
/**
* @see org.apache.wicket.markup.html.link.ResourceLink#onClick()
*/
public void onClick() {
super.onClick();
pdfResourceReference.setReportParameters(getParamsForCurrentReportDynamically());
};
pdf.add(new Label("pdfLabel", new ResourceModel("label.pdf")));
add(pdf);
}
}
What am i missing?
Thanks
Per
--
View this message in context:
http://www.nabble.com/Link-to-dynamic-pdf-%28jasperreports%29-tf4936362.html#a14129410
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]