I just committed more refactorings for JasperReports integeration. I
guess there are not many people using it yet, so I just went ahead
with it.

I think it is ok now. I got rid of the 'JasperReports' names in favor
of 'JR' (like the API in JasperResports). Furthermore, there are
seperate classes per output (PDF, Text, Image) again, as I needed it
for the image output (which works great by the way). And having
seperate classes just is easy and flexible.

Currently, this is what you need to create a link to a report:

Java:
 File reportFile ...
 JRResource pdfResource = new JRPdfResource(reportFile);
 pdfResource.setReportDataSource(new ExampleDataSource());
 add(new ResourceLink("linkToPdf", pdfResource));

Html:
 <a href="#" wicket:id="linkToPdf">display PDF report</a>

If you want to have a download dialog, simply set the fileName
property on your resource.

There are a couple of examples in the project. RTF output is not
working, but my guess is that that's a bug in JasperReports. But it
would be great if someone could take a look at that.

Eelco


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to