That's how I use it not to have Serialisation problem :

JRResource resourcePDF = new
JRConcreteResource<PdfResourceHandler>(reportFile, new PdfResourceHandler())
{
    public JRDataSource getReportDataSource() {
        //retrieve you data
        //...
        return new JRBeanCollectionDataSource(yourCollection);
    }

   public Map<String, Object> getReportParameters() {
        Map<String, Object> params = new HashMap<String, Object>();
        //set your parameters
        params.put("base_path",
WebApplication.get().getServletContext().getRealPath(""));
        return params;
   }
};


Hope this help.
Gabriel.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/JasperReports-Serialization-error-with-JRDataSource-tp3325024p3325265.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]

Reply via email to