Nope. I just added an example for that too. I'll take a couple of
hours to show up in annonymous cvs, but it's basically like this:

                final File reportFile = new
File(context.getRealPath("/reports/example.jasper"));
                final Map parameters = new HashMap();
                JasperReportsResource pdfResource = new 
JasperReportsPDFResource(reportFile)
                                
.setReportParameters(parameters).setReportDataSource(
                                                new ExampleDataSource());

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


Only thing we need now is to be able to set the content disposition on
resources, which was file at
http://sourceforge.net/tracker/index.php?func=detail&aid=1286190&group_id=119783&atid=684975.

I'll try to put in the last missing pieces (like RTF generation if
that works good enough) in tommorrow morning. I have no plans to
support report compilation etc at this time. That would increase the
scope enormously, and would take more time than I have available
unfortunatly. Then again, I may be not that important to have such
support.

Eelco


On 9/10/05, Arto Arffman <[EMAIL PROTECTED]> wrote:
> I'd like to have also a link to the report. I Browsed a little bit the source 
> and it seems that there should be no problem with that, is there?
> 
> ________________________________
> 
> Lähettäjä: [EMAIL PROTECTED] puolesta: Eelco Hillenius
> Lähetetty: pe 9.9.2005 0:22
> Vastaanottaja: Wicket Develop List
> Aihe: [Wicket-develop] JasperReports integration
> 
> 
> 
> List,
> 
> I've committed a first working version of JasperReports integration as
> project 'wicket-contrib-jasperreports' in wicket-stuff. It's pretty
> basic, ony supports PDF right now, and there is no support for report
> compilation (and I'm not sure if that's something the integration
> project should provide anyway), but it works. Though...
> 
> There are a couple of things I hope Juergen and Johan (an of course
> anyone else that like to) could take a look at.
> 
> First, the idea is to have a component like any other, and let that
> output jasperreport reports. Those components must be attached to
> either frame or iframe tags. If you - the readers - can come up with
> more/ better cases please propose.
> 
> Anyhow, the example looks like this:
> 
>     Before<br />
> 
>                 <iframe src="" wicket:id="report" height="40%" width="80%"/>
> 
>     <br />After
> 
> There are a few issues I'm having though:
> * '<br />After' is never displayed (or anything else that comes after
> the report). It is in the source though, so I expect it has something
> to do with iframes and the page it is embedded in.
> *  The open/close tag works, but if I replace that by:
> <iframe src="" wicket:id="report" height="40%" width="80%">
> </iframe>
> I'm getting a fat exception:
> 
> 
> wicket.markup.MarkupException: Expected close tag for <iframe
> width="80%" height="40%" wicket:id="report"
> src="/wicket-jasperreports/app?path=3:report&interface=IResourceListener">
> [markup = 
> file:/C:/projects/eclipse_workspace/wicket-contrib-jasperreports/target/classes/wicket/contrib/jasperreports/examples/SimplePdfPage.html,
> index = 10, current = [Raw markup]]
>         at 
> wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:277)
>         at wicket.Component.renderClosingComponentTag(Component.java:2071)
>         at wicket.Component.renderComponent(Component.java:1842)
>         at wicket.markup.html.WebComponent.onRender(WebComponent.java:78)
>         at wicket.Component.render(Component.java:1121)
>         at 
> wicket.markup.html.BodyOnLoadContainer.resolve(BodyOnLoadContainer.java:104)
>         at wicket.MarkupContainer.renderNext(MarkupContainer.java:1130)
>         at 
> wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:782)
>         at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:724)
>         at wicket.Component.renderComponent(Component.java:1836)
>         at 
> wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:73)
>         at wicket.Component.render(Component.java:1121)
>         at wicket.MarkupContainer.autoAdd(MarkupContainer.java:167)
>         at 
> wicket.markup.html.BodyOnLoadResolver.resolve(BodyOnLoadResolver.java:65)
>         at wicket.MarkupContainer.renderNext(MarkupContainer.java:1117)
>         at wicket.MarkupContainer.renderAll(MarkupContainer.java:750)
>         at wicket.Page.onRender(Page.java:761)
>         at wicket.Component.render(Component.java:1121)
>         at wicket.Page.doRender(Page.java:247)
>         at wicket.RequestCycle.respond(RequestCycle.java:861)
>         at wicket.RequestCycle.request(RequestCycle.java:404)
>         at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:195)
> 
> Any ideas?
> 
> Eelco
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Wicket-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
> 
> 
> 
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to