summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2015-11-05 13:06:20 +0200
committerArtur Signell <artur@vaadin.com>2016-08-08 08:22:12 +0000
commit9207d3f3442a6ab6b9fda29d8a76e2bee4929ab1 (patch)
tree95c3ac34b0b2cb70b4d204b136b3de5cd9c1f38c /client
parent44010cfbfbf4135f3bf3be02c6a852689b1cef8d (diff)
downloadvaadin-framework-9207d3f3442a6ab6b9fda29d8a76e2bee4929ab1.tar.gz
vaadin-framework-9207d3f3442a6ab6b9fda29d8a76e2bee4929ab1.zip
Create new items with RPC (#19929)
When the user creates a new item, send it with client to server RPC. Change-Id: Iaf60fc910d4e8b57b681b4cf13f124871c1a01b0
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/ui/combobox/ComboBoxConnector.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/combobox/ComboBoxConnector.java b/client/src/main/java/com/vaadin/client/ui/combobox/ComboBoxConnector.java
index df73aa6902..f66a115313 100644
--- a/client/src/main/java/com/vaadin/client/ui/combobox/ComboBoxConnector.java
+++ b/client/src/main/java/com/vaadin/client/ui/combobox/ComboBoxConnector.java
@@ -399,8 +399,7 @@ public class ComboBoxConnector extends AbstractFieldConnector implements
* user entered string value for the new item
*/
public void sendNewItem(String itemValue) {
- getConnection().updateVariable(getConnectorId(), "newitem", itemValue,
- immediate);
+ rpc.createNewItem(itemValue);
}
/**