Java Code Examples for javax.faces.component.UIComponent#getRendersChildren()
The following examples show how to use
javax.faces.component.UIComponent#getRendersChildren() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RendererUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * Helper method for recursively encoding a component. * * @param context * the given FacesContext * @param component * the UIComponent to render * @throws IOException */ public static void encodeRecursive(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator iter = component.getChildren().iterator(); while (iter.hasNext()) { UIComponent child = (UIComponent) iter.next(); encodeRecursive(context, child); } } component.encodeEnd(context); }
Example 2
Source File: RendererUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * Helper method for recursively encoding a component. * * @param context * the given FacesContext * @param component * the UIComponent to render * @throws IOException */ public static void encodeRecursive(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator iter = component.getChildren().iterator(); while (iter.hasNext()) { UIComponent child = (UIComponent) iter.next(); encodeRecursive(context, child); } } component.encodeEnd(context); }
Example 3
Source File: RendererUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * Helper method for recursively encoding a component. * * @param context * the given FacesContext * @param component * the UIComponent to render * @throws IOException */ public static void encodeRecursive(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator iter = component.getChildren().iterator(); while (iter.hasNext()) { UIComponent child = (UIComponent) iter.next(); encodeRecursive(context, child); } } component.encodeEnd(context); }
Example 4
Source File: RendererUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * Helper method for recursively encoding a component. * * @param context * the given FacesContext * @param component * the UIComponent to render * @throws IOException */ public static void encodeRecursive(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator iter = component.getChildren().iterator(); while (iter.hasNext()) { UIComponent child = (UIComponent) iter.next(); encodeRecursive(context, child); } } component.encodeEnd(context); }
Example 5
Source File: RendererUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * Helper method for recursively encoding a component. * * @param context * the given FacesContext * @param component * the UIComponent to render * @throws IOException */ public static void encodeRecursive(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator iter = component.getChildren().iterator(); while (iter.hasNext()) { UIComponent child = (UIComponent) iter.next(); encodeRecursive(context, child); } } component.encodeEnd(context); }
Example 6
Source File: RendererUtil.java From sakai with Educational Community License v2.0 | 6 votes |
/** * Helper method for recursively encoding a component. * * @param context * the given FacesContext * @param component * the UIComponent to render * @throws IOException */ public static void encodeRecursive(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator iter = component.getChildren().iterator(); while (iter.hasNext()) { UIComponent child = (UIComponent) iter.next(); encodeRecursive(context, child); } } component.encodeEnd(context); }
Example 7
Source File: BaseRenderer.java From fenixedu-academic with GNU Lesser General Public License v3.0 | 6 votes |
protected void encodeRecursive(FacesContext context, UIComponent component) throws IOException { if (component.isRendered() == false) { return; } component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator kids = component.getChildren().iterator(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); encodeRecursive(context, kid); } } component.encodeEnd(context); }
Example 8
Source File: RendererUtil.java From sakai with Educational Community License v2.0 | 5 votes |
/** * Helper method for recursively encoding a component. * @param context the given FacesContext * @param component the UIComponent to render * @throws IOException */ public static void encodeRecursive(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator iter = component.getChildren().iterator(); while (iter.hasNext()) { UIComponent child = (UIComponent) iter.next(); encodeRecursive(context, child); } } component.encodeEnd(context); }
Example 9
Source File: RendererUtil.java From sakai with Educational Community License v2.0 | 5 votes |
/** * Helper method for recursively encoding a component. * @param context the given FacesContext * @param component the UIComponent to render * @throws IOException */ public static void encodeRecursive(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator iter = component.getChildren().iterator(); while (iter.hasNext()) { UIComponent child = (UIComponent) iter.next(); encodeRecursive(context, child); } } component.encodeEnd(context); }
Example 10
Source File: SyllabusIfRender.java From sakai with Educational Community License v2.0 | 5 votes |
public void encodeChildren(FacesContext context, UIComponent component) throws IOException { if (context == null || component == null) { throw new NullPointerException(); } String test = (String) component.getAttributes().get("test"); if(test!=null) test = test.trim(); if((test==null) || (test.equals(""))) { Iterator kids = component.getChildren().iterator(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.encodeBegin(context); if (kid.getRendersChildren()) { kid.encodeChildren(context); } kid.encodeEnd(context); } } else { } }
Example 11
Source File: SyllabusIfNotRender.java From sakai with Educational Community License v2.0 | 5 votes |
public void encodeChildren(FacesContext context, UIComponent component) throws IOException { if (context == null || component == null) { throw new NullPointerException(); } String test = (String) component.getAttributes().get("test"); if(test!=null) test = test.trim(); if((test!=null) && (!test.equals(""))) { Iterator kids = component.getChildren().iterator(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.encodeBegin(context); if (kid.getRendersChildren()) { kid.encodeChildren(context); } kid.encodeEnd(context); } } else { } }
Example 12
Source File: R.java From BootsFaces-OSP with Apache License 2.0 | 5 votes |
/** * Renders the Child of a Component * * @param fc * @param child * @throws IOException */ public static void renderChild(FacesContext fc, UIComponent child) throws IOException { if (!child.isRendered()) { return; } child.encodeBegin(fc); if (child.getRendersChildren()) { child.encodeChildren(fc); } else { renderChildren(fc, child); } child.encodeEnd(fc); }
Example 13
Source File: RendererUtil.java From sakai with Educational Community License v2.0 | 5 votes |
/** * Helper method for recursively encoding a component. * @param context the given FacesContext * @param component the UIComponent to render * @throws IOException */ public static void encodeRecursive(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator iter = component.getChildren().iterator(); while (iter.hasNext()) { UIComponent child = (UIComponent) iter.next(); encodeRecursive(context, child); } } component.encodeEnd(context); }
Example 14
Source File: RendererUtil.java From sakai with Educational Community License v2.0 | 5 votes |
/** * Helper method for recursively encoding a component. * @param context the given FacesContext * @param component the UIComponent to render * @throws IOException */ public static void encodeRecursive(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } component.encodeBegin(context); if (component.getRendersChildren()) { component.encodeChildren(context); } else { Iterator iter = component.getChildren().iterator(); while (iter.hasNext()) { UIComponent child = (UIComponent) iter.next(); encodeRecursive(context, child); } } component.encodeEnd(context); }
Example 15
Source File: SyllabusIfRender.java From sakai with Educational Community License v2.0 | 5 votes |
public void encodeChildren(FacesContext context, UIComponent component) throws IOException { if (context == null || component == null) { throw new NullPointerException(); } String test = (String) component.getAttributes().get("test"); if(test!=null) test = test.trim(); if((test==null) || (test.equals(""))) { Iterator kids = component.getChildren().iterator(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.encodeBegin(context); if (kid.getRendersChildren()) { kid.encodeChildren(context); } kid.encodeEnd(context); } } else { } }
Example 16
Source File: SyllabusIfNotRender.java From sakai with Educational Community License v2.0 | 5 votes |
public void encodeChildren(FacesContext context, UIComponent component) throws IOException { if (context == null || component == null) { throw new NullPointerException(); } String test = (String) component.getAttributes().get("test"); if(test!=null) test = test.trim(); if((test!=null) && (!test.equals(""))) { Iterator kids = component.getChildren().iterator(); while (kids.hasNext()) { UIComponent kid = (UIComponent) kids.next(); kid.encodeBegin(context); if (kid.getRendersChildren()) { kid.encodeChildren(context); } kid.encodeEnd(context); } } else { } }