diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-03-28 10:07:00 +0300 |
---|---|---|
committer | Pekka Hyvönen <pekka@vaadin.com> | 2017-03-28 10:07:00 +0300 |
commit | 91590e9f6c91de1fcfd9534263a2e270d973d384 (patch) | |
tree | 4b973e064e37af021e3f38c14d104ad76e7b8e83 /server | |
parent | e3e96a674c13eae5516a5d8d2085917a3859e4d0 (diff) | |
download | vaadin-framework-91590e9f6c91de1fcfd9534263a2e270d973d384.tar.gz vaadin-framework-91590e9f6c91de1fcfd9534263a2e270d973d384.zip |
Fix data not being sent again when adding DataGenerators (#8947)
* Fix data not being sent again when adding DataGenerators
* Fix header component detaching, revert early header cleanup
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main/java/com/vaadin/data/provider/DataCommunicator.java | 3 | ||||
-rw-r--r-- | server/src/main/java/com/vaadin/ui/components/grid/StaticSection.java | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java index 566c7c732f..ae3c6f4cc1 100644 --- a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java +++ b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java @@ -366,6 +366,9 @@ public class DataCommunicator<T> extends AbstractExtension { public void addDataGenerator(DataGenerator<T> generator) { Objects.requireNonNull(generator, "generator cannot be null"); generators.add(generator); + + // Make sure data gets generated when adding data generators. + reset(); } /** diff --git a/server/src/main/java/com/vaadin/ui/components/grid/StaticSection.java b/server/src/main/java/com/vaadin/ui/components/grid/StaticSection.java index dcf27fb357..947be8f522 100644 --- a/server/src/main/java/com/vaadin/ui/components/grid/StaticSection.java +++ b/server/src/main/java/com/vaadin/ui/components/grid/StaticSection.java @@ -158,6 +158,7 @@ public abstract class StaticSection<ROW extends StaticSection.StaticRow<?>> iterator.remove(); } } + cell.detach(); } } |