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 2017/11/09 09:43:51 UTC
[myfaces-tobago] branch master updated: alternative implementation
(als comment)
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new 1f3d2b1 alternative implementation (als comment)
1f3d2b1 is described below
commit 1f3d2b16e0f7f36c3d4c1ea2cf5a4ca75e47029f
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Thu Nov 9 10:43:46 2017 +0100
alternative implementation (als comment)
---
.../tobago/internal/renderkit/renderer/StyleRenderer.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/StyleRenderer.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/StyleRenderer.java
index a1cff0c..1895c9b 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/StyleRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/StyleRenderer.java
@@ -61,6 +61,17 @@ public class StyleRenderer extends RendererBase {
writer.writeAttribute(HtmlAttributes.TYPE, "text/css", false);
writer.endElement(HtmlElements.LINK);
+/* tbd: check, if this
+ writer.startElement(HtmlElements.STYLE);
+ writer.writeAttribute(HtmlAttributes.TYPE, "text/css", false);
+ writer.writeAttribute(HtmlAttributes.NONCE, Nonce.getNonce(facesContext), false);
+// writer.writeAttribute(HtmlAttributes.MEDIA, "screen", false);
+ writer.writeText("@import url(");
+ writer.writeText(file);
+ writer.writeText(");");
+ writer.endElement(HtmlElements.STYLE);
+*/
+
} else {
final Measure width = style.getWidth();
--
To stop receiving notification emails like this one, please contact
['"commits@myfaces.apache.org" <co...@myfaces.apache.org>'].