aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main/java')
-rw-r--r--server/src/main/java/com/vaadin/ui/ComboBox.java15
1 files changed, 1 insertions, 14 deletions
diff --git a/server/src/main/java/com/vaadin/ui/ComboBox.java b/server/src/main/java/com/vaadin/ui/ComboBox.java
index 39c2bad8ba..8fdc8452ed 100644
--- a/server/src/main/java/com/vaadin/ui/ComboBox.java
+++ b/server/src/main/java/com/vaadin/ui/ComboBox.java
@@ -38,7 +38,6 @@ import com.vaadin.server.data.DataKeyMapper;
import com.vaadin.server.data.DataSource;
import com.vaadin.shared.Registration;
import com.vaadin.shared.data.DataCommunicatorConstants;
-import com.vaadin.shared.ui.combobox.ComboBoxClientRpc;
import com.vaadin.shared.ui.combobox.ComboBoxConstants;
import com.vaadin.shared.ui.combobox.ComboBoxServerRpc;
import com.vaadin.shared.ui.combobox.ComboBoxState;
@@ -70,9 +69,7 @@ public class ComboBox<T> extends AbstractSingleSelect<T> implements HasValue<T>,
if (value != null) {
selectedCaption = getItemCaptionProvider().apply(value);
}
- // FIXME now overlap between state and RPC
- getRpcProxy(ComboBoxClientRpc.class).setSelectedItem(key,
- selectedCaption);
+ getState().selectedItemCaption = selectedCaption;
}
}
@@ -151,16 +148,6 @@ public class ComboBox<T> extends AbstractSingleSelect<T> implements HasValue<T>,
}
@Override
- public void setSelectedItem(String key) {
- // it seems both of these happen, and mean empty selection...
- if (key == null || "".equals(key)) {
- getSelectionModel().setSelectedFromClient(null);
- } else {
- getSelectionModel().setSelectedFromClient(key);
- }
- }
-
- @Override
public void setFilter(String filterText) {
filterstring = filterText;
if (filterText != null) {