diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2017-11-06 20:20:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-06 20:20:58 +0200 |
commit | f7abbea6bef3eb46fa4f3580a7da2a2440463266 (patch) | |
tree | 08f5548e33600dfd6ace1e962e9990ff90541118 /uitest | |
parent | eb617673472871b84d029917fc15a202cca58e59 (diff) | |
download | vaadin-framework-f7abbea6bef3eb46fa4f3580a7da2a2440463266.tar.gz vaadin-framework-f7abbea6bef3eb46fa4f3580a7da2a2440463266.zip |
HasItems.setItems(T... items) should allow edits (#10290)
* HasItems.setItems(T... items) should allow edits
Arrays.asList() creates a immutable Arrays.ArrayList, preventing users from doing dataProvider.getItems() and updating the returned collection. This makes it impossible to keep the same data provider, update it and keep the filters & sorting, and then just call dataProvider.refreshAll() to get changes visible. We should not require users to create a new data provider in this case.
This is the same for DataProvider.ofItems(T... items)
* fix missing whitespace from test error message
Diffstat (limited to 'uitest')
0 files changed, 0 insertions, 0 deletions