For the moment, this issue has put me behind schedule so I need to move on, but I will try to get back to it and open an issue later. Thanks again.
Bruce Sent from my iPad > On Mar 15, 2015, at 3:59 PM, Andrea Del Bene <[email protected]> wrote: > > Good! It would be nice to understand what caused this change from 6.12.0 to > 6.13.0 but this requires a quickstart to reproduce the specific problem. If > you have the time and the chance to create such quickstart you can open an > issue on JIRA. >> Thanks Andrea, >> >> Your small observation was important. After moving the code into the >> onInitialize method everything started working. The url produced is >> ./resource/org.apache.wicket.Application/pdfProducer and not . >> ./resource/org.apache.wicket.Application/pdfProducer. >> >> I also test the wicket-bootstrap theory, but that does not seem to be >> involved. >> >> I will use this fix. Since this works should I still open a JIRA issue? >> >> Thanks again, >> >> Bruce >> >> -----Original Message----- >> From: Andrea Del Bene [mailto:[email protected]] >> Sent: Sunday, March 15, 2015 10:00 AM >> To: [email protected] >> Subject: Re: PDF viewed in panel via ResourceReference works in 6.12 but not >> in 6.13 >> >> Just a small observation that might help. Move code from PdfViewer >> contructor to onInitialize. This makes URL generation safer although it >> doesn't explain why your code worked until 6.12.0. >>> I guess it depends on the mount path of your page. >>> Most probably it is /wicket/bookmarkable/... >>>> On Mar 14, 2015 7:37 PM, "Bruce Lombardi" <[email protected]> wrote: >>>> >>>> Interesting, >>>> >>>> When I run your code I see that the url is as you say: >>>> >>>> ./wicket/resource/org.apache.wicket.Application/pdfProducer >>>> >>>> Whereas in my working code (wicket version 6.12) it is: >>>> >>>> ./resource/org.apache.wicket.Application/pdfProducer >>>> >>>> And in my non-working code (wicket versions 6.13 - 6.19) it is: >>>> >>>> ../resource/org.apache.wicket.Application/pdfProducer >>>> >>>> If I remove the first dot from the url with the debuggerthen run from >>>> there the pdf appears as it should. >>>> >>>> I wonder why they are different in the two projects and why I'm getting .. >>>> with later versions. >>>> >>>> I'm also wondering if there is another library that is somehow >>>> incompatible with later versions of Wicket. >>>> >>>> I think the only library we use that interacts with Wicket is wicket >>>> bootstrap - currently as below (but I've tried other version): >>>> <dependency> >>>> <groupId>de.agilecoders.wicket</groupId> >>>> <artifactId>wicket-bootstrap-core</artifactId> >>>> <version>0.9.8</version> >>>> </dependency> >>>> >>>> <dependency> >>>> <groupId>de.agilecoders.wicket</groupId> >>>> >>>> <artifactId>wicket-bootstrap-extensions</artifactId> >>>> <version>0.9.8</version> >>>> </dependency> >>>> >>>> I will add these dependencies to your quickstart and see if it makes >>>> a difference. >>>> >>>> Bruce >> >> >> --------------------------------------------------------------------- >> 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
