results.append(prepareDisabled());
results.append(">");
Object value = TagUtils.getInstance().lookup(pageContext, modelName, modelProperty,
null);
if (value == null || ! ( value instanceof MultiSelectSelectionModel )) {
throw new JspException("Model attributes must specify an instance of MultiSelectListDataSourceModel (" + value + ")");
}
MultiSelectSelectionModel model = (MultiSelectSelectionModel)value;
for(Iterator i = model.getAvailableValues().iterator(); i.hasNext(); ) {
LabelValueBean lvb = (LabelValueBean)i.next();
results.append("<option value=\"");