summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-12-20 14:06:11 +0000
committerArtur Signell <artur.signell@itmill.com>2010-12-20 14:06:11 +0000
commit5ba6f99f8985b27fc466d6c1f6ad75d6ce896a3c (patch)
treeaa5b1626662f944c6b24d9c342dae80a5534b9fc /src/com/vaadin/ui
parentc866da8116e1e8017f7e07ac1c7637624b7e9681 (diff)
downloadvaadin-framework-5ba6f99f8985b27fc466d6c1f6ad75d6ce896a3c.tar.gz
vaadin-framework-5ba6f99f8985b27fc466d6c1f6ad75d6ce896a3c.zip
#6174 JS Error when extending range with multi selection enabled table with nullselectallowed=false
svn changeset:16580/svn branch:6.5
Diffstat (limited to 'src/com/vaadin/ui')
-rw-r--r--src/com/vaadin/ui/Table.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java
index 0ef91acea8..78d7af7393 100644
--- a/src/com/vaadin/ui/Table.java
+++ b/src/com/vaadin/ui/Table.java
@@ -1940,12 +1940,6 @@ public class Table extends AbstractSelect implements Action.Container,
}
}
- if (!isNullSelectionAllowed() && newValue.size() < 1) {
- // empty selection not allowed, keep old value
- requestRepaint();
- return;
- }
-
/* Add range items aka shift clicked multiselection areas */
if (ranges != null) {
for (String range : ranges) {
@@ -1956,6 +1950,12 @@ public class Table extends AbstractSelect implements Action.Container,
}
}
+ if (!isNullSelectionAllowed() && newValue.size() < 1) {
+ // empty selection not allowed, keep old value
+ requestRepaint();
+ return;
+ }
+
setValue(newValue, true);
}