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


<<winmail.dat>>

Reply via email to