Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2014-08-20 Thread Dirk Forchel
Thank you Martin. Lovely. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Struggling-with-ContextRelativeResource-RenderedDynamicImageResource-and-SharedResources-tp4662190p4667115.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2014-08-20 Thread Martin Grigorov
Hi, With the following modifications it works: in HomePage.html: static resource from Web Container ContextRelativeResource with SharedResourceReference PlaceholderImageResourceReference in HomePage.java: add(new Image("dotclear1", new SharedResourceReference("dotclear"))); add(new Imag

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2014-08-20 Thread Dirk Forchel
Hi Ernesto, after a couple of weeks (months) I still haven't found a solution. Any idea? Thanks for your helping hand. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Struggling-with-ContextRelativeResource-RenderedDynamicImageResource-and-SharedResources-tp4662190p46

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2013-11-11 Thread Ernesto Reinaldo Barreiro
Did not have time to look at it. I will try today. On Tue, Nov 12, 2013 at 7:44 AM, Dirk Forchel wrote: > Did anybody try to run my attached quickstart application and can explain > why > the additional LocaleMapper changes the path? > > > > -- > View this message in context: > http://apache-wic

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2013-11-11 Thread Dirk Forchel
Did anybody try to run my attached quickstart application and can explain why the additional LocaleMapper changes the path? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Struggling-with-ContextRelativeResource-RenderedDynamicImageResource-and-SharedResources-tp4662

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2013-11-08 Thread Dirk Forchel
No, actually not. We've got a complete layout for our web applications from an external design company and they use this CSS+static image resource thing quite often. And, as I have mentioned before, we have two Wicket web applications running in the same container. One of them on the root context a

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2013-11-08 Thread Ernesto Reinaldo Barreiro
may I ask what is the use case for this 1x1 PNG? Is it something that cannot be handled via CSS + static image on resources? On Fri, Nov 8, 2013 at 8:49 AM, Dirk Forchel wrote: > Okay. I know, but their is no need for an additional parameter. I want to > generate always the same image (a 1x1px P

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2013-11-07 Thread Dirk Forchel
Okay. I know, but their is no need for an additional parameter. I want to generate always the same image (a 1x1px PNG with a transparent background). So I don't see the need for a parameter. But I try to prepare a quickstart. -- View this message in context: http://apache-wicket.1842946.n4.nabb

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2013-11-07 Thread Ernesto Reinaldo Barreiro
If you mount a global resource then you can pass a parameter to it and use that parameter to generate dynamic image. If you create a quickstart I could try to look at it and help (if I can). On Fri, Nov 8, 2013 at 8:18 AM, Dirk Forchel wrote: > Yes, I know this article and based on this one I wr

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2013-11-07 Thread Dirk Forchel
Yes, I know this article and based on this one I wrote the PlaceholderImageResourceReference class. And it works as expected. I mean I can add this resource reference to each component I want. Panel: add( new Image("placeholderImg", new PlaceholderImageResourceReference() ) ); Markup: But this

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2013-11-07 Thread Ernesto Reinaldo Barreiro
Did you read this? http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ On Fri, Nov 8, 2013 at 6:56 AM, Dirk Forchel wrote: > No comment? No idea? Probably another solution? > Thanks > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Struggling

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2013-11-07 Thread Dirk Forchel
No comment? No idea? Probably another solution? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Struggling-with-ContextRelativeResource-RenderedDynamicImageResource-and-SharedResources-tp4662190p4662219.html Sent from the Users forum mailing list archive at Na

Re: Struggling with ContextRelativeResource, RenderedDynamicImageResource and SharedResources

2013-11-07 Thread Dirk Forchel
And finally I've added two Image components to the Panel (this works as expected). In my Panel.class: add( new Image("img1", new SharedResourceReference("dotclear") ) ); add( new Image("img2", new PlaceholderImageResourceReference() ) ); HTML: Rendered URLs: In addition we use the placeholder