With the following modifications it works:

in HomePage.html:

<span>static resource from Web Container</span>
 <img class="icon" src="images/dotclear.png" /><br>
<span>ContextRelativeResource with SharedResourceReference</span>
 <img class="icon" wicket:id="dotclear1" /><br>
 <img class="icon" wicket:id="dotclear2" />

in HomePage.java:

add(new Image("dotclear1", new SharedResourceReference("dotclear")));
 add(new Image("dotclear2", new PlaceholderImageResourceReference()));

the generated paths look like:
note the locale as first segment in the path! with your code this is
missing and thus the 404s

Martin Grigorov
Wicket Training and Consulting

On Wed, Aug 20, 2014 at 10:58 AM, Dirk Forchel <dirk.forc...@exedio.com>

> 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-tp4662190p4667100.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

Reply via email to