Re: There are problems with

Wed, 23 Nov 2011 09:52:01 -0800

you are using incompatible versions of wicket.contrib.jasper and
wicket itself, make sure they are both either 1.4.x or 1.5.x

-igor

On Wed, Nov 23, 2011 at 4:16 AM, andreyich <andrey...@mail.ru> wrote:
> If somebody could help me!? It is about showing jasper report in some page!
>
> I have a simple page where only 1 tag
> HTML
> <html xmlns:wicket="http://wicket.sourceforge.net/";>
> <head>
>    <title>test</title>
> </head>
> <body>
>
> </body>
> </html>
>
> JAVA
> It is in page constructor
> final Map parameters = new HashMap();
> JRResource pdfResource = new
> JRPdfResource(reportService.getReportSource().getFile());
> EmbeddedJRReport jrReport = new EmbeddedJRReport ("report1", pdfResource) ;
> add(jrReport);
>
> When I want to go on this page I am getting the error
> Caused by:
>
> java.lang.NoSuchMethodError:
> wicket.contrib.jasperreports.EmbeddedJRReport.getResponse()Lorg/apache/wicket/Response;
>        at
> wicket.contrib.jasperreports.EmbeddedJRReport.onComponentTag(EmbeddedJRReport.java:71)
>        at 
> org.apache.wicket.Component.internalRenderComponent(Component.java:2488)
>        at
> org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:56)
>        at org.apache.wicket.Component.internalRender(Component.java:2347)
>        at org.apache.wicket.Component.render(Component.java:2275)
>        at 
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1474)
>        at 
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1638)
>        at org.apache.wicket.Page.onRender(Page.java:904)
>        at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:140)
>        at org.apache.wicket.Component.internalRender(Component.java:2347)
>        at org.apache.wicket.Component.render(Component.java:2275)
>        at org.apache.wicket.Page.renderPage(Page.java:1035)
>
>
> Problem in the method onComponentTag of EmbeddedJRReport component in line
> tag.put("data",
> getResponse().encodeURL(urlFor(IResourceListener.INTERFACE)));
>
> What is it! Help please!
>
> Andrey
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/There-are-problems-with-object-wicket-id-report-width-350-height-100-tp4099376p4099376.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to