public void encodeChildren ( FacesContext context , UIComponent component ) throws IOException { if ( context == null ) { throw new NullPointerException ( "context" ) ; } if ( component == null ) { throw new NullPointerException ( "component" ) ; } if ( component . getChildCount ( ) > 0 ) { for ( int i = 0 , childCount = component . getChildCount ( ) ; i < childCount ; i ++ ) { UIComponent child = component . getChildren ( ) . get ( i ) ; if ( ! child . isRendered ( ) ) { continue ; } child . encodeAll ( context ) ; } } }
Render all children if there are any .