Hello,
It seems there is a small bug in SelectItem with multiple values from another DataSource.
In this configuration:
when selecting first two records multiple warnings appears on console log (super dev mode):
It looks like there is a value comparison and when only one record is selected on grid, its returned not as array but as single value.
When I change to:
Problem disappears.
Best regards
Mariusz Goch
It seems there is a small bug in SelectItem with multiple values from another DataSource.
In this configuration:
Code:
SelectItem item = new SelectItem(); item.setOptionDataSource(...); item.setMultiple(true); item.setMultipleAppearance(MultipleAppearance.GRID);
Code:
*20:58:15.179:MDN8:WARN:NativeSelectItem:isc_SelectItem_9[classes]:compareValues - this is a multiple FormItem but compareValues was called with a non-null first argument `value1` that is not an array. *20:58:15.183:MDN8:WARN:NativeSelectItem:isc_SelectItem_9[classes]:compareValues - this is a multiple FormItem but compareValues was called with a non-null second argument `value2` that is not an array.
When I change to:
Code:
item.setMultipleAppearance(MultipleAppearance.PICKLIST);
Problem disappears.
Best regards
Mariusz Goch
Comment