From dc10f4b2deac5419e86774b24a34a70e0894c455 Mon Sep 17 00:00:00 2001 From: Teppo Kurki Date: Wed, 11 Feb 2009 13:36:47 +0000 Subject: [PATCH] Fixed ticket #2580. Disallowed useless null selection for two combobox examples. svn changeset:6806/svn branch:trunk --- .../demo/sampler/features/selects/ComboBoxContainsExample.java | 3 +++ .../sampler/features/selects/ComboBoxStartsWithExample.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/com/itmill/toolkit/demo/sampler/features/selects/ComboBoxContainsExample.java b/src/com/itmill/toolkit/demo/sampler/features/selects/ComboBoxContainsExample.java index bc34109b5c..4c170bde6d 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/selects/ComboBoxContainsExample.java +++ b/src/com/itmill/toolkit/demo/sampler/features/selects/ComboBoxContainsExample.java @@ -33,6 +33,9 @@ public class ComboBoxContainsExample extends VerticalLayout implements l.setImmediate(true); l.addListener(this); + // Disallow null selections + l.setNullSelectionAllowed(false); + addComponent(l); } diff --git a/src/com/itmill/toolkit/demo/sampler/features/selects/ComboBoxStartsWithExample.java b/src/com/itmill/toolkit/demo/sampler/features/selects/ComboBoxStartsWithExample.java index c27177423a..e0909c9eb1 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/selects/ComboBoxStartsWithExample.java +++ b/src/com/itmill/toolkit/demo/sampler/features/selects/ComboBoxStartsWithExample.java @@ -33,6 +33,9 @@ public class ComboBoxStartsWithExample extends VerticalLayout implements l.setImmediate(true); l.addListener(this); + // Disallow null selections + l.setNullSelectionAllowed(false); + addComponent(l); } -- 2.39.5