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

Udo Schnurpfeil resolved TOBAGO-435.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.12

As a simple solution, I've remove the media property from the style-include 
call. So it is now possible to define the media type in the file.

> Add support for different media-styles
> --------------------------------------
>
>                 Key: TOBAGO-435
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-435
>             Project: MyFaces Tobago
>          Issue Type: New Feature
>          Components: Themes
>    Affects Versions: 1.0.11
>            Reporter: Matthias Wronka
>            Priority: Minor
>             Fix For: 1.0.12
>
>
> Currently the <tc:style> tag does not allow the specification of a media-type 
> the style should be used for. As in the Scarborough PageRenderer this 
> media-type is hardcoded set to "screen" there is no way to specify 
> print-styles except from overwriting the renderer.
> This is the Code-Fragment from PageRenderer:
>     // style files
>     for (String styleFile : page.getStyleFiles()) {
>       List<String> styles = ResourceManagerUtil.getStyles(facesContext, 
> styleFile);
>       for (String styleString : styles) {
>         if (styleString.length() > 0) {
>           writer.startElement(HtmlConstants.LINK, null);
>           writer.writeAttribute(HtmlAttributes.REL, "stylesheet", false);
>           writer.writeAttribute(HtmlAttributes.HREF, styleString, false);
>           writer.writeAttribute(HtmlAttributes.MEDIA, "screen", false);
>           writer.writeAttribute(HtmlAttributes.TYPE, "text/css", false);
>           writer.endElement(HtmlConstants.LINK);
>         }
>       }
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to