diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-03-28 10:07:00 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-05-08 14:46:35 +0300 |
commit | e6c8a9e89eda7f5064e7be8f04f8520a70af9fef (patch) | |
tree | 1b8ef8615e87942869de6ed8284911f3a998c6a0 | |
parent | 95f0b75e3a5d9ddb7207046a37f9b92b1a8e9d47 (diff) | |
download | vaadin-framework-e6c8a9e89eda7f5064e7be8f04f8520a70af9fef.tar.gz vaadin-framework-e6c8a9e89eda7f5064e7be8f04f8520a70af9fef.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
-rw-r--r-- | server/src/main/java/com/vaadin/data/provider/DataCommunicator.java | 3 |
1 files changed, 3 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 c0e1d75dd2..08e11b96b5 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(); } /** |