You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Duto (JIRA)" <ji...@apache.org> on 2013/11/26 16:22:36 UTC

[jira] [Updated] (WICKET-5429) property media of link css

     [ https://issues.apache.org/jira/browse/WICKET-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Duto updated WICKET-5429:
-------------------------

    Attachment: Sample.zip

> property media of link css 
> ---------------------------
>
>                 Key: WICKET-5429
>                 URL: https://issues.apache.org/jira/browse/WICKET-5429
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.12.0
>            Reporter: Duto
>            Priority: Trivial
>         Attachments: Sample.zip
>
>
> 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 



--
This message was sent by Atlassian JIRA
(v6.1#6144)