Re: ResourceReferenceRegistry

2012-03-07 Thread Martin Grigorov
On Wed, Mar 7, 2012 at 4:54 PM, grazia wrote: > Could someone help me understand what the error below means ? I have copied > the relevant code below, what is wrong with it. I believe I have followed > guidelines for wicket 1.5 > > > Mar 07, 2012 8:48:43 AM > org.apache.wicket.request.resource.Res

Re: ResourceReferenceRegistry

2012-03-07 Thread grazia
Thank you Martin. I think it is an issue of absolutePath. In private final ResourceReference mouseOverMenuCss = new CssResourceReference(getClass(), "/css/mouseovermenu.css"); the PackageResourc

Re: ResourceReferenceRegistry

2012-03-07 Thread Martin Grigorov
The problem is at $2 in web.components.PageHeaderComponent$2 This is an inner anonymous class which name may vary. Just use a stable class name and make sure the resource is next to the .class file. On Wed, Mar 7, 2012 at 5:34 PM, grazia wrote: > Thank you Martin. > I think it is an issue of abso

Re: ResourceReferenceRegistry

2012-03-07 Thread grazia
what is the resource is not next to the .class file, but in a specific directory external to the app, say in tomcat/webapps/css ? Is there another wicket API I should use ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ResourceReferenceRegistry-tp4453457p4454858.html

Re: ResourceReferenceRegistry

2012-03-07 Thread Martin Grigorov
See org.apache.wicket.markup.html.IHeaderResponse#renderCSSReference(String) On Thu, Mar 8, 2012 at 12:09 AM, grazia wrote: > what is the resource is not next to the .class file, but in a specific > directory external to the app, say in tomcat/webapps/css ? Is there another > wicket API I should

Re: ResourceReferenceRegistry

2012-03-08 Thread grazia
Still not clear what I did wrong. With wicket 1.4 my code was: public final class PageHeaderComponent extends WebComponent { public PageHeaderComponent(final String id, final String changeDestination) { super(id); add(CSSPackageResource.getHeaderContribution("/css/header.cs