// - only render if rendered is true
if (component.isRendered())
{
for (Iterator iterator = component.getChildren().iterator(); iterator.hasNext();)
{
final UIComponent child = (UIComponent)iterator.next();
child.encodeBegin(context);
if (child.getRendersChildren())
{
child.encodeChildren(context);
}
child.encodeEnd(context);
}
}
}