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 <dirk.forc...@exedio.com>wrote: > 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 is not the point. I thought I can add a kind of "global" resource > with a mount path like: > mountResource("/images/dotclear.png", new > PlaceholderImageResourceReference() ); > > Where each src-attribute of an img-tag with the src path like > "images/dotclear.png" is replaced with the image automatically. But it is > not. We have about 10 to 20 Panels with almost the same "placeholder" > image. > > But if I add the servlet context path (the application runs with this > servlet context path) to the src-attribute, the image is added!? I don't > understand why? > > This is a bit strange to me. > > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Struggling-with-ContextRelativeResource-RenderedDynamicImageResource-and-SharedResources-tp4662190p4662221.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 > > -- Regards - Ernesto Reinaldo Barreiro