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/23 16:22:46 UTC
[myfaces-tobago] branch master updated: TOBAGO-1777: Improve CSS
Style rendering * fix inside of
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 6a65e2b TOBAGO-1777: Improve CSS Style rendering * fix <tc:style> inside of <tc:sheet>
6a65e2b is described below
commit 6a65e2bf2154d5dfcb0226dcc3520ec7f39381e5
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Thu Nov 23 17:22:22 2017 +0100
TOBAGO-1777: Improve CSS Style rendering
* fix <tc:style> inside of <tc:sheet>
---
.../tobago/internal/renderkit/renderer/SheetRenderer.java | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java
index 238d2bf..ff4f3ad 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java
@@ -38,6 +38,7 @@ import org.apache.myfaces.tobago.internal.component.AbstractUIData;
import org.apache.myfaces.tobago.internal.component.AbstractUIOut;
import org.apache.myfaces.tobago.internal.component.AbstractUIRow;
import org.apache.myfaces.tobago.internal.component.AbstractUISheet;
+import org.apache.myfaces.tobago.internal.component.AbstractUIStyle;
import org.apache.myfaces.tobago.internal.layout.Cell;
import org.apache.myfaces.tobago.internal.layout.Grid;
import org.apache.myfaces.tobago.internal.layout.OriginCell;
@@ -209,8 +210,13 @@ public class SheetRenderer extends RendererBase {
}
@Override
- public void encodeChildren(final FacesContext context, final UIComponent component) throws IOException {
- // DO Nothing
+ public void encodeChildren(final FacesContext facesContext, final UIComponent component) throws IOException {
+ final UISheet sheet = (UISheet) component;
+ for (UIComponent child : sheet.getChildren()) {
+ if (child instanceof AbstractUIStyle) {
+ child.encodeAll(facesContext);
+ }
+ }
}
@Override
--
To stop receiving notification emails like this one, please contact
['"commits@myfaces.apache.org" <co...@myfaces.apache.org>'].