diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-03-05 12:41:38 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-03-05 12:41:38 +0000 |
commit | b8a68602f63b9aab859d763ba8d97c80572f87c6 (patch) | |
tree | 98b0632062f8ff21ba7c7ef3b0db9a988b47e49b /src | |
parent | 1905023f4a6e4cce6795b0b1bdec465e4f1ec056 (diff) | |
download | vaadin-framework-b8a68602f63b9aab859d763ba8d97c80572f87c6.tar.gz vaadin-framework-b8a68602f63b9aab859d763ba8d97c80572f87c6.zip |
enabled multiselect in Select component (Should use ListSelect, but for backwards compatibility)
svn changeset:3970/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/ui/Select.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/itmill/toolkit/ui/Select.java b/src/com/itmill/toolkit/ui/Select.java index 9acbb3f7d2..63039dd0c9 100644 --- a/src/com/itmill/toolkit/ui/Select.java +++ b/src/com/itmill/toolkit/ui/Select.java @@ -87,6 +87,11 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering { * if the paint operation failed. */ public void paintContent(PaintTarget target) throws PaintException { + if (isMultiSelect()) { + super.paintContent(target); + return; + } + // clear caption change listeners getCaptionChangeListener().clear(); @@ -105,10 +110,6 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering { target.addAttribute("required", true); } - // Paints select attributes - if (isMultiSelect()) { - target.addAttribute("selectmode", "multi"); - } if (isNewItemsAllowed()) { target.addAttribute("allownewitem", true); } |