writer.writeNameAttribute(clientId);
writer.writeIdAttribute(clientId);
writer.writeAttribute(HtmlAttributes.DISABLED,
ComponentUtil.getBooleanAttribute(component, ATTR_DISABLED));
writer.writeAttribute(HtmlAttributes.STYLE, null, ATTR_STYLE);
writer.writeComponentClass();
writer.writeAttribute(HtmlAttributes.TITLE, null, ATTR_TIP);
writer.writeAttribute(HtmlAttributes.SIZE, 2, null); // should be greater 1
if (!ComponentUtil.getBooleanAttribute(component, ATTR_REQUIRED)) {
writer.writeAttribute(HtmlAttributes.ONCHANGE, "Tobago.selectOneListboxChange(this)", null);
writer.writeAttribute(HtmlAttributes.ONCLICK, "Tobago.selectOneListboxClick(this)", null);