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"));


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 !


View this message in context: 
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
Wicket-user mailing list

Reply via email to