Description
Media property of link (css) is not set if addResourceReplacement is set on WebApplication.init :
I set a css file on page via renderHead(IHeaderResponse response) with screen media :
@Override
public void renderHead(IHeaderResponse response) {
response.render(CssHeaderItem.forReference(OriginalResourceReference.get(), "screen"));
}
and after if I defined a resourceReplacement on application init :
@Override
public void init() {
super.init();
addResourceReplacement(OriginalResourceReference.get(), new CssResourceReference(OriginalResourceReference.class, "overwrite.css"));
}
I don't have the property media="screen" when wicket generated page.
Duto