Re: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-15 Thread Andrea Del Bene
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

Re: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-15 Thread Bruce Lombardi
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 an.delb...@gmail.com wrote: Good! It would be nice to understand what

Re: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-15 Thread Andrea Del Bene
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

RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-14 Thread Martin Grigorov
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 brlom...@gmail.com wrote: Interesting, When I run your code I see that the url is as you say: ./wicket/resource/org.apache.wicket.Application/pdfProducer

Re: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-14 Thread Ernesto Reinaldo Barreiro
Bruce, Apologies for my short answers of yesterday: texting from a mobile device is not very confortable. Would this class https://github.com/reiern70/antilia-bits/blob/master/content-iframe/src/main/java/com/antilia/iframe/DocumentInlineFrame.java be of some help for your use case? On Fri,

RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-14 Thread Bruce Lombardi
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 -

Re: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-14 Thread Andrea Del Bene
Hi, I've created a quickstart based on your code but I can't reproduce the issue. I've shared it on Dropbox: https://www.dropbox.com/s/qmolvzvp9a0xplf/ResourceIssue.tar.gz?dl=0 The only thing I've noted is that your resource url doesn't have starting segment 'wicket', i.e my resource url is:

RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-14 Thread Bruce Lombardi
Thanks Andrea. I'll work with your quickstart and see what I can find. Bruce -Original Message- From: Andrea Del Bene [mailto:an.delb...@gmail.com] Sent: Saturday, March 14, 2015 11:58 AM To: users@wicket.apache.org Subject: Re: PDF viewed in panel via ResourceReference works in 6.12

RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-13 Thread Bruce Lombardi
Martin, I'm looking into mounting the resource but there is something that I don't understand. Currently I am creating the resource in my panel and passing the pdf I want to display into the constructor of the resource. If I mount the resource, how do I provide it with the dynamically

Re: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-13 Thread Ernesto Reinaldo Barreiro
Pass the info as parameters on the request to the mounted resource? On Fri, Mar 13, 2015 at 7:15 PM, Bruce Lombardi brlom...@gmail.com wrote: Martin, I'm looking into mounting the resource but there is something that I don't understand. Currently I am creating the resource in my panel and

RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-13 Thread Bruce Lombardi
Thanks Martin. I'm not getting any WARN messages in the logs. I'll take a look at mounting the resource. Bruce -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Friday, March 13, 2015 12:53 PM To: users@wicket.apache.org Subject: Re: PDF viewed in panel via

RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-13 Thread Bruce Lombardi
Thanks Ernesto, I don't know how to pass a byte[] as a parameter. Bruce -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: Friday, March 13, 2015 2:20 PM To: users@wicket.apache.org Subject: Re: PDF viewed in panel via ResourceReference works in 6.12

RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-13 Thread Bruce Lombardi
The problem (which I think is a bug) is in the way the url is produced. The line String url = (String)RequestCycle.get().urlFor(resourceReference, null); Produces the url to use for the resource ref. In the non-working version it returns:

RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-13 Thread Bruce Lombardi
That's not really possible. The pdf is produced by itext from a template with lots of parameter. It would require too large a change in the code and would couple the pdfViewer panel too closely to the domain code. If, as Martin suggests, the automatic registering of the resource is not being

Re: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-13 Thread Martin Grigorov
Please create a quickstart application and attach it to JIRA. Thanks! Martin Grigorov Freelancer, available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, Mar 14, 2015 at 12:03 AM, Bruce Lombardi brlom...@gmail.com wrote: The problem (which I think is a bug) is

RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-13 Thread Bruce Lombardi
Thanks Martin an others. I am always impressed with the helpfulness of the people on this list. I will look into what you suggest. In the meantime I'm trying to find out more information about the differences between versions and I set the logger level to DEBUG and obtained the traces below

RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-13 Thread reiern70
Passing something that allows you to produce the byte []? Sent from Samsung Mobile Original message From: Bruce Lombardi brlom...@gmail.com Date:13/03/2015 20:20 (GMT+01:00) To: users@wicket.apache.org Subject: RE: PDF viewed in panel via ResourceReference works in 6.12

Re: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-13 Thread Martin Grigorov
Hi, I think I see what happens. The ResRef is created as a local variable to create the url and then discarded. Wicket has something called ResourceReferenceRegistry. When a ResRef is used to create an url to it it is automatically registered in the registry. It seems after 6.13 there is no such