1 5 package org.exoplatform.faces.core.renderer.html; 6 7 import java.util.* ; 8 import java.io.IOException ; 9 import javax.faces.component.UIComponent; 10 import javax.faces.context.FacesContext; 11 import javax.faces.render.Renderer ; 12 16 public class ChildrenRenderer extends Renderer { 17 18 final public void encodeBegin( FacesContext context, UIComponent component ) throws IOException { 19 } 20 21 public void encodeChildren( FacesContext context, UIComponent component ) throws IOException { 22 List children = component.getChildren() ; 23 for (int i = 0; i < children.size(); i++) { 24 UIComponent child = (UIComponent) children.get(i) ; 25 if (child.isRendered()) { 26 child.encodeBegin(context) ; 27 child.encodeChildren(context) ; 28 child.encodeEnd(context) ; 29 } 30 } 31 } 32 33 final public void encodeEnd( FacesContext context, UIComponent component ) throws IOException { 34 } 35 } | Popular Tags |