[Wicket-user] How to programatically link to a css or a script ?

2006-07-23 Thread Peewhy
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

Re: [Wicket-user] How to programatically link to a css or a script ?

2006-07-23 Thread Peewhy
Thank you very much ! It is not yet fully working, but I have no more exception. I used add(new StyleSheetReference(menucss, getClass(), stylesheets/menu/menu.css)); as Frank said and put the menu.css file where it belongs (the above directory structure starting whe the page class is).