aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testbench/com/vaadin/tests/containers/sqlcontainer/ComboBoxUpdateProblem.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testbench/com/vaadin/tests/containers/sqlcontainer/ComboBoxUpdateProblem.java')
-rw-r--r--tests/testbench/com/vaadin/tests/containers/sqlcontainer/ComboBoxUpdateProblem.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/testbench/com/vaadin/tests/containers/sqlcontainer/ComboBoxUpdateProblem.java b/tests/testbench/com/vaadin/tests/containers/sqlcontainer/ComboBoxUpdateProblem.java
new file mode 100644
index 0000000000..ed6d39bb62
--- /dev/null
+++ b/tests/testbench/com/vaadin/tests/containers/sqlcontainer/ComboBoxUpdateProblem.java
@@ -0,0 +1,27 @@
+package com.vaadin.tests.containers.sqlcontainer;
+
+import com.vaadin.Application;
+import com.vaadin.ui.AbstractSelect.Filtering;
+import com.vaadin.ui.ComboBox;
+import com.vaadin.ui.Window;
+
+/**
+ * See http://dev.vaadin.com/ticket/9155 .
+ */
+public class ComboBoxUpdateProblem extends Application {
+ private final DatabaseHelper databaseHelper = new DatabaseHelper();
+
+ @Override
+ public void init() {
+ setMainWindow(new Window("Test window"));
+
+ ComboBox combo = new ComboBox("Names",
+ databaseHelper.getTestContainer());
+ combo.setItemCaptionPropertyId("FIELD1");
+ combo.setFilteringMode(Filtering.FILTERINGMODE_CONTAINS);
+ combo.setImmediate(true);
+
+ getMainWindow().addComponent(combo);
+ }
+
+} \ No newline at end of file