copyAttributes(parent, ii, input);
// disabled
boolean disabled = ii.isDisabled();
input.setDisabled(disabled);
// Options
Options options = ii.getOptions();
boolean hasEmpty =(!ii.isRequired() && !(disabled && ii.getColumn().isRequired()) && !options.contains(""));
String nullText = (hasEmpty) ? getNullText(ii) : "";
initOptions(input, ii.getTextResolver(), options, hasEmpty, nullText);
// add
compList.add(input);
}
else
{ // check type
UIComponent comp = compList.get(0);
if (!(comp instanceof HtmlSelectOneMenu))
throw new UnexpectedReturnValueException(comp.getClass().getName(), "compList.get");
// cast
input = (HtmlSelectOneMenu)comp;
// disabled
boolean disabled = ii.isDisabled();
input.setDisabled(disabled);
// Options (sync)
Options options = ii.getOptions();
boolean hasEmpty =(!ii.isRequired() && !(disabled && ii.getColumn().isRequired()) && !options.contains(""));
String nullText = (hasEmpty) ? getNullText(ii) : "";
syncOptions(input, ii.getTextResolver(), options, hasEmpty, nullText);
}
// style