summaryrefslogtreecommitdiffstats
path: root/server/src/com
diff options
context:
space:
mode:
authormaxschuster <dev@maxschuster.eu>2016-02-22 00:10:21 +0100
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-03-08 13:59:17 +0200
commit39409784dfdce456d1e6e1054288c7e446c2cd49 (patch)
treed723eff09ac904b5d0c3aad2b4a18ddb85ee3cfa /server/src/com
parent96da1ff946c0d93deadcc04146b70d217c78b393 (diff)
downloadvaadin-framework-39409784dfdce456d1e6e1054288c7e446c2cd49.tar.gz
vaadin-framework-39409784dfdce456d1e6e1054288c7e446c2cd49.zip
Fix DragAndDropWrapper update after file upload (#19616)
After a file has been uploaded VDragAndDropWrapper tries to pull changes from the server by calling ApplicationConnection.sendPendingVariableChanges() which has no effect. This change replaces the ApplicationConnection.sendPendingVariableChanges() call with an RPC. Change-Id: If8abc662d4761969e5aa8e6327bfd4bdd7f5e905
Diffstat (limited to 'server/src/com')
-rw-r--r--server/src/com/vaadin/ui/DragAndDropWrapper.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/DragAndDropWrapper.java b/server/src/com/vaadin/ui/DragAndDropWrapper.java
index 90b3b56ef6..29179ddca7 100644
--- a/server/src/com/vaadin/ui/DragAndDropWrapper.java
+++ b/server/src/com/vaadin/ui/DragAndDropWrapper.java
@@ -40,6 +40,7 @@ import com.vaadin.shared.MouseEventDetails;
import com.vaadin.shared.ui.dd.HorizontalDropLocation;
import com.vaadin.shared.ui.dd.VerticalDropLocation;
import com.vaadin.shared.ui.draganddropwrapper.DragAndDropWrapperConstants;
+import com.vaadin.shared.ui.draganddropwrapper.DragAndDropWrapperServerRpc;
import com.vaadin.ui.declarative.DesignContext;
@SuppressWarnings("serial")
@@ -111,6 +112,14 @@ public class DragAndDropWrapper extends CustomComponent implements DropTarget,
}
+ private final DragAndDropWrapperServerRpc rpc = new DragAndDropWrapperServerRpc() {
+
+ @Override
+ public void poll() {
+ // #19616 RPC to poll the server for changes
+ }
+ };
+
private Map<String, ProxyReceiver> receivers = new HashMap<String, ProxyReceiver>();
public class WrapperTargetDetails extends TargetDetailsImpl {
@@ -197,6 +206,7 @@ public class DragAndDropWrapper extends CustomComponent implements DropTarget,
@Deprecated
public DragAndDropWrapper() {
super();
+ registerRpc(rpc);
}
/**