Hey all,

    I'm trying to build a ResourceLink to a JRResource but there's a
Serialization exception going on.  Here is the snippet code:

final ServletContext context = ((WebApplication)
getApplication()).getServletContext();
final File reportFile = new
File(context.getRealPath("/reports/employeeReport.jasper"));

final Map parameters = new HashMap();
parameters.put("BaseDir", new File(context.getRealPath("/reports")));
JRResource pdfResource = new JRConcreteResource(reportFile, new
PdfResourceHandler()).setReportParameters(
parameters).setReportDataSource(new
JRBeanCollectionDataSource(service.listAll()));

add(new ResourceLink("linkToPdf", pdfResource));

The service variable is a @SpringBean.

Any idea anyone? (Eelco, specially... who wrote jasper integration on
wicketstuff)...

:-)

Best regards,

Bruno Borges
www.brunoborges.com.br
+55 21 76727099

"The glory of great men should always be
measured by the means they have used to
acquire it."
 - Francois de La Rochefoucauld

Reply via email to