Fix [ 1883143 ] Process Delete Import doesn't allow to select table
This commit is contained in:
parent
0029eb6f93
commit
c0912859ca
|
@ -95,6 +95,16 @@ public class Listbox extends org.zkoss.zul.Listbox
|
|||
List<ListItem> items = getItems();
|
||||
for (ListItem item : items)
|
||||
{
|
||||
if (value.getClass() != item.getValue().getClass()) {
|
||||
// if the classes of value and item are different convert both to String
|
||||
String stringValue = value.toString();
|
||||
String stringItem = item.getValue().toString();
|
||||
if (stringValue.equals(stringItem))
|
||||
{
|
||||
setSelectedItem(item);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (value.equals(item.getValue()))
|
||||
{
|
||||
setSelectedItem(item);
|
||||
|
@ -102,6 +112,7 @@ public class Listbox extends org.zkoss.zul.Listbox
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public ListHead getListHead()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue