summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authormaxschuster <dev@maxschuster.eu>2016-02-22 00:10:21 +0100
committerVaadin Code Review <review@vaadin.com>2016-03-01 13:16:02 +0000
commit81aadbb9edeb4a57dd02c35937905e5427a674e0 (patch)
tree179ad1ef914d85ac90875911f915370a59032de1 /server
parentb7cb84e5b1165a913b054afa0f8bdc369cd2c031 (diff)
downloadvaadin-framework-81aadbb9edeb4a57dd02c35937905e5427a674e0.tar.gz
vaadin-framework-81aadbb9edeb4a57dd02c35937905e5427a674e0.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: Ibdf7f4d702add9507dbe54c1fdb402f0f4b19d19
Diffstat (limited to 'server')
-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);
}
/**