final String clientId = component.getClientId(context);
List<SelectItem> list = super.accrueSelectItems(component);
int counter = 0;
for (int i = 0; i < list.size(); i++) {
SelectItem selectItem = list.get(i);
if (selectItem instanceof SelectItemGroup) {
if ("pageDirection".equals(layout)) {
out.startElement("tr", component);
out.write("\n");
}
out.startElement("td", component);
out.write("\n");
out.startElement("table", component);
if (border > 0)
out.writeAttribute("border", border, "border");
if (style != null)
out.writeAttribute("style", style, "style");
if (styleClass != null)
out.writeAttribute("class", styleClass, "class");
if (disabled)
out.writeAttribute("disabled", "disabled", "disabled");
out.write("\n");
if (!"pageDirection".equals(layout)) {
out.startElement("tr", component);
out.write("\n");
}
SelectItem []items = ((SelectItemGroup) selectItem).getSelectItems();
for (int j = 0; j < items.length; j++) {
SelectItem item = items[j];
encodeChild(out,
component,
value,
item,