  public void encodeChildren(FacesContext context, UIComponent component)
    throws IOException
  {
    if (!component.isRendered())
    {
      return;
    }
    String clientId = null;
    if (component.getId() != null &&
      !component.getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX))
    {
      clientId = component.getClientId(context);
    }
    ResponseWriter writer = context.getResponseWriter();
    if (clientId != null)
    {
      writer.startElement("div", component);
    }
    List children = component.getChildren();
    String separator = (String) RendererUtil.getAttribute(context, component, "separator");
    if (separator==null) separator="";
    boolean first = true;
    for (Iterator iter = children.iterator(); iter.hasNext();)
    {
      UIComponent child = (UIComponent)iter.next();
      if (child.isRendered()) {
         if (!first) writer.write(separator);
         RendererUtil.encodeRecursive(context, child);
         first = false;
      }
    } 
      if (clientId != null)
        {
        writer.endElement("div");
      }
  }

  public void encodeChildren(FacesContext context, UIComponent component)
    throws IOException
  {
    if (!component.isRendered())
    {
      return;
    }
    String clientId = null;
    if (component.getId() != null &&
      !component.getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX))
    {
      clientId = component.getClientId(context);
    }
    ResponseWriter writer = context.getResponseWriter();
    if (clientId != null)
    {
      writer.startElement("div", component);
    }
    List children = component.getChildren();
    String separator = (String) RendererUtil.getAttribute(context, component, "separator");
    if (separator==null) separator="";
    boolean first = true;
    for (Iterator iter = children.iterator(); iter.hasNext();)
    {
      UIComponent child = (UIComponent)iter.next();
      if (child.isRendered()) {
         if (!first && separator !=null && separator != "") writer.write("<span class=\"separator\">" + separator + "</span>");
         RendererUtil.encodeRecursive(context, child);
         first = false;
      }
    } 
      if (clientId != null)
        {
        writer.endElement("div");
      }
  }
