Hi all,
I have problems with resource look up for styles css... and I dont know,
what I am doing wrong.
Can someone have a look, please...
myPackage.
BasePage.java
BasePage.html
myCss.css
myCss.blue.css
myCss.orange.css
As far as I know, the resource lookup for all kind of resources is the same.
I set the style to my Session via
Session.get().setStyle("blue");
and I can see the correct style string while debugging.
I tried to include my css into the BasePage via
BasePage.html
<wicket:head>
<wicket:link>
<link rel="stylesheet" type="text/css" href="myCss.css" />
</wicket:link>
</wicket:head>
and also via
BasePage.java:
@Override
public void renderHead(HtmlHeaderContainer container) {
super.renderHead(container);
IHeaderResponse response = container.getHeaderResponse();
response.render(CssHeaderItem.forReference(new
CssResourceReference(BasePage.class, "myCss.css", getLocale(),
getStyle(), getVariation())));
}
Both ways always look up the normal myCss.css and not myCss.blue.css.
Whats wrong with my code?
Help please...
Thanx a lot.
kind regards
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]