Hi Evan
I'm using wicketcontrib-jasperreports, but I think it is only to
create a PDF and show it on screen. I want to save the PDF as a file
in the database. I need a OutpStream or something like that to get the
byte array of PDF and save it on the database.
On Jan 15, 2008 7:04 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> You should probably look into using Resources. the
> wicketcontrib-jasperreports has this done for you already.
>
>
> On Jan 15, 2008 12:01 PM, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote:
>
> > Hi
> >
> > I'm trying to create a PDF file with Jasper inside a page with wicket
> > 1.2.6, but I'm getting an exception:
> >
> > Root cause:
> >
> > java.io.NotSerializableException:
> > org.apache.catalina.core.ApplicationContextFacade
> > .
> > .
> > Complete stack:
> >
> > wicket.WicketRuntimeException: Internal error cloning object. Make
> > sure all dependent objects implement Serializable.
> >
> > The code that is causing the Exception, is this:
> >
> > JasperRunManager.runReportToPdfStream(context.getResourceAsStream
> > ("WEB-INF/reports/scanPdf/creditScanPdf.jasper"),outputStream,map,
> > new ScanPdf(new
> > ArrayList()));
> >
> > I tried to put this inside a LoadableDetachableModel, but no success.
> > Any help is welcome!
> > Thank you
> > Marco
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]