Re: set favicon.ico dynamically in wicket 6

2012-11-25 Thread Rob Schroeder
Hi Tim, I ran into the same question a couple of days ago, and in what maybe constitutes overkill for a simpler solution I didn't see, I looked at CssResourceReference and reused as much of the code as seemed to be necessary to make a FaviconResourceReference:

Re: set favicon.ico dynamically in wicket 6

2012-11-25 Thread Martin Grigorov
Hi, Is 'resources' folder next to WEB-INF folder in the file system ? If YES then all you need to do is: MyPage.html html head link rel=shortcut icon href=resources/favicon.png type=image/png/ Wicket automatically resolves such relative urls to context relative ones no matter what

Re: set favicon.ico dynamically in wicket 6

2012-11-25 Thread Tim Van Meerbeeck
Rob, This is a solution if you want to achieve this! I was just looking into the possibility because this is a pretty rare scenario. The favico was designed to have a bookmark to a site and have an icon in your favorites so you can quickly find the right bookmark. So the scenario to load this

Re: set favicon.ico dynamically in wicket 6

2012-11-25 Thread Martin Grigorov
You can add components which are in the head. MyPage.html: html head link wicket:id=favicon / ... /head . MyPage.java: add(new Favicon(favicon)); Favicon.java: public class Favicon extends WebComponent { public Favicon(String id){ super(id); } public