summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-03-28 10:07:00 +0300
committerHenri Sara <henri.sara@gmail.com>2017-03-30 11:20:55 +0300
commit782b158b524e52a3df4a9eb084b5b3f95a98c596 (patch)
tree940226a7ab257de69525560f6b03c64fc1c3165d /server
parent1f09abde4cfa5a6c12508749b51b4ddd7f31f6db (diff)
downloadvaadin-framework-782b158b524e52a3df4a9eb084b5b3f95a98c596.tar.gz
vaadin-framework-782b158b524e52a3df4a9eb084b5b3f95a98c596.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.java3
-rw-r--r--server/src/main/java/com/vaadin/ui/components/grid/StaticSection.java1
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 bc7d2cfbd5..4ea6895750 100644
--- a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
+++ b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
@@ -284,6 +284,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();
}
}