/** * <p>Render nested child components by invoking the encode methods * on those components, but only when the <code>rendered</code> * property is <code>true</code>.</p> * * @param context FacesContext for the current request * @param component the component to recursively encode * * @throws IOException if an error occurrs during the encode process */ protected void encodeRecursive(FacesContext context, UIComponent component) throws IOException { // suppress rendering if "rendered" property on the component is // false. if (!component.isRendered()) { return; } // Render this component and its children recursively component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator<UIComponent> kids = getChildren(component); while (kids.hasNext()) { UIComponent kid = kids.next(); encodeRecursive(context, kid); } } component.encodeEnd(context); }
/** * <p>Render nested child components by invoking the encode methods * on those components, but only when the <code>rendered</code> * property is <code>true</code>.</p> * * @param context FacesContext for the current request * @param component the component to recursively encode * * @throws IOException if an error occurrs during the encode process */ protected void encodeRecursive(FacesContext context, UIComponent component) throws IOException { // suppress rendering if "rendered" property on the component is // false. if (!component.isRendered()) { return; } // Render this component and its children recursively component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator<UIComponent> kids = getChildren(component); while (kids.hasNext()) { UIComponent kid = kids.next(); encodeRecursive(context, kid); } } component.encodeEnd(context); }
component.encodeChildren(context); } else { Iterator<UIComponent> kids = getChildren(component); while (kids.hasNext()) { UIComponent kid = kids.next();
component.encodeChildren(context); } else { Iterator<UIComponent> kids = getChildren(component); while (kids.hasNext()) { UIComponent kid = kids.next();
component.encodeChildren(context); } else { Iterator<UIComponent> kids = getChildren(component); while (kids.hasNext()) { UIComponent kid = kids.next();