public boolean getRendersChildren() {
return true;
}
public void encodeChildren(FacesContext facesContext, UIComponent component) throws IOException {
UIToolBarGroup toolBarGroup = (UIToolBarGroup) component;
ResponseWriter writer = facesContext.getResponseWriter();
String style = (String) toolBarGroup.getAttributes().get("style");
String styleClass = (String) toolBarGroup.getAttributes().get("styleClass");
if (null == styleClass) styleClass = "";
String contentClass = (String) toolBarGroup.getToolBar().getAttributes().get("contentClass");
if (null == contentClass) contentClass = "";
String contentStyle = (String) toolBarGroup.getToolBar().getAttributes().get("contentStyle");
if (component.getChildCount() > 0) {
for (Iterator it = component.getChildren().iterator(); it.hasNext();) {
UIComponent child = (UIComponent) it.next();
writer.startElement("td", component);