mountSharedResource() will make it reachable at
/resources/org.apache.wicket.Application/favicon.ico

In Wicket 1.5 you can use mountResource("favicon.ico", resourceReference)
and it will do what you need.
You can write your custom IMountableRequestTargetUrlCodingStrategy to do
that in 1.4

On Fri, Mar 18, 2011 at 4:58 PM, Ian Marshall <ianmarshall...@gmail.com>wrote:

> MOUNTING
> --------
> In my WebApplication-descended class I tried
>
>  protected void init()
>  {
>    super.init();
>    ...
>
>    // New code
>     ResourceReference rrefFavicon = new ResourceReference(
>     ResourcesLocator.class, "favicon.ico");
>     mountSharedResource([path], rrefFavicon.getSharedResourceKey());
>  }
>
> where for [path] I tried "favicon.ico", "/favicon.ico" and "/favicon.ico/"
> but not "/" since that is reserved for the home page, with HTML mark-up
>
>
>
> but this did not work for me.
>
>
> PUTTING NEXT TO /WEB-INF
> ------------------------
> Thanks for this tip; it worked for me!
>
>
> CONCLUSION
> ----------
> Thank you, Martin, for your response. This should have fixed my problem. My
> solution is not the neatest one, since I now have two favicon.ico files in
> my deployment, but the main thing is that it works.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Favicon-best-practice-tp3386789p3387600.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
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to