}
public void encodeEndTobago(FacesContext facesContext,
UIComponent uiComponent) throws IOException {
UISelectMany component = (UISelectMany) uiComponent;
List<SelectItem> items = ComponentUtil.getSelectItems(component);
if (LOG.isDebugEnabled()) {
LOG.debug("items.size() = '" + items.size() + "'");
}
TobagoResponseWriter writer
= (TobagoResponseWriter) facesContext.getResponseWriter();
writer.startElement("select", component);
String clientId = component.getClientId(facesContext);
writer.writeNameAttribute(clientId);
writer.writeIdAttribute(clientId);
writer.writeAttribute("disabled",
ComponentUtil.getBooleanAttribute(component, ATTR_DISABLED));
writer.writeAttribute("style", null, "style");
writer.writeComponentClass();
writer.writeAttribute("multiple", "multiple", null);
writer.writeAttribute("title", null, ATTR_TIP);
Object[] values = component.getSelectedValues();
if (LOG.isDebugEnabled()) {
LOG.debug("values = '" + values + "'");
}
for (SelectItem item : items) {