1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag;
21
22 import org.apache.myfaces.tobago.layout.LayoutContainer;
23 import org.slf4j.Logger;
24 import org.slf4j.LoggerFactory;
25 import org.apache.myfaces.tobago.renderkit.RendererBase;
26 import org.apache.myfaces.tobago.renderkit.util.RenderUtils;
27
28 import javax.faces.component.UIComponent;
29 import javax.faces.context.FacesContext;
30 import java.io.IOException;
31
32 public class TabGroupLayoutRenderer extends RendererBase {
33
34 private static final Logger LOG = LoggerFactory.getLogger(TabGroupLayoutRenderer.class);
35
36 @Override
37 public void encodeChildren(FacesContext facesContext, UIComponent component) throws IOException {
38 UIComponent container = component.getParent();
39 LOG.info("TAB GROUP LAYOUT RENDERER");
40 if (container instanceof LayoutContainer && !((LayoutContainer) container).isLayoutChildren()) {
41 return;
42 }
43 RenderUtils.encodeChildren(facesContext, container);
44 }
45
46 }