You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2007/07/10 17:19:30 UTC

svn commit: r554972 - /myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java

Author: lofwyr
Date: Tue Jul 10 08:19:29 2007
New Revision: 554972

URL: http://svn.apache.org/viewvc?view=rev&rev=554972
Log:
TOBAGO-435: Add support for different media-styles
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.

Modified:
    myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java?view=diff&rev=554972&r1=554971&r2=554972
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java Tue Jul 10 08:19:29 2007
@@ -46,8 +46,8 @@
 import org.apache.myfaces.tobago.renderkit.html.HtmlConstants;
 import org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil;
 import org.apache.myfaces.tobago.util.AccessKeyMap;
-import org.apache.myfaces.tobago.util.ResponseUtils;
 import org.apache.myfaces.tobago.util.MimeTypeUtils;
+import org.apache.myfaces.tobago.util.ResponseUtils;
 import org.apache.myfaces.tobago.webapp.TobagoResponseWriter;
 
 import javax.faces.application.Application;
@@ -67,6 +67,7 @@
 import java.util.Set;
 
 public class PageRenderer extends PageRendererBase {
+
   private static final Log LOG = LogFactory.getLog(PageRenderer.class);
 
 //      values for doctype :
@@ -193,7 +194,7 @@
           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.MEDIA, "screen", false);
           writer.writeAttribute(HtmlAttributes.TYPE, "text/css", false);
           writer.endElement(HtmlConstants.LINK);
         }