if (!isMultiselect() && isNullSelectionAllowed()
&& !isNullSelectionItemAvailable()) {
// can't unselect last item in singleselect mode
- select.addItem("", null);
+ select.addItem("", (String) null);
}
for (final Iterator<?> i = uidl.getChildIterator(); i.hasNext();) {
final UIDL optionUidl = (UIDL) i.next();
if (isNullSelectionAllowed() && !isNullSelectionItemAvailable()) {
// can't unselect last item in singleselect mode
- select.addItem("", null);
+ select.addItem("", (String) null);
}
boolean selected = false;
for (final Iterator<?> i = uidl.getChildIterator(); i.hasNext();) {
if (!selected && !isNullSelectionAllowed()) {
// null-select not allowed, but value not selected yet; add null and
// remove when something is selected
- select.insertItem("", null, 0);
+ select.insertItem("", (String) null, 0);
select.setItemSelected(0, true);
firstValueIsTemporaryNullItem = true;
}