Hello, I have started using Wicket few weeks ago and I am still unable to find simple solutions to simple problems ! The problem I am facing now (after many others !) is to link to a resource at run time. For example, to link to a css, I am using :
<link wicket:id="menucss" type="text/css"> in the HTML template and add(new StyleSheetReference("menucss", getClass(), "menu.css")); or add(new StyleSheetReference("menucss", new ResourceReference("menu.css"))); Although the file menu.css is in the same directory as the page class, I only get an error message : Unable to resolve shared resource [ResourceReference name = menu.css, scope = class wicket.Application, locale = null, style = null] Thanks for any advice ! BTW, I am posting this from Nable since my mail was refused by the list server because I have no posmaster address in my domain. This is not very practical ! Pierre-Yves -- View this message in context: http://www.nabble.com/How-to-programatically-link-to-a-css-or-a-script---tf1988255.html#a5456479 Sent from the Wicket - User forum at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user