diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-08-24 14:38:19 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-08-24 13:26:53 +0000 |
commit | c413b480663e9b3cbda00faf14eb4df224c6a10a (patch) | |
tree | 0e14ab6ecd4fbc27ef6e06cf1ffac94f278a2bde /server/src/com/vaadin/ui | |
parent | c954a7836ceb8410d6250256ddc3bc7584e76774 (diff) | |
download | vaadin-framework-c413b480663e9b3cbda00faf14eb4df224c6a10a.tar.gz vaadin-framework-c413b480663e9b3cbda00faf14eb4df224c6a10a.zip |
Fix Table ColumnCollapseEvents to work with generated columns (#6914)
Change-Id: Id2039cc4869695a8f4bbaa8f25f44f804433e909
Diffstat (limited to 'server/src/com/vaadin/ui')
-rw-r--r-- | server/src/com/vaadin/ui/Table.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/Table.java b/server/src/com/vaadin/ui/Table.java index 2cd4084ad9..10d1c45ab6 100644 --- a/server/src/com/vaadin/ui/Table.java +++ b/server/src/com/vaadin/ui/Table.java @@ -1322,7 +1322,8 @@ public class Table extends AbstractSelect implements Action.Container, if (collapsed && noncollapsibleColumns.contains(propertyId)) { throw new IllegalStateException("The column is noncollapsible!"); } - if (!getContainerPropertyIds().contains(propertyId)) { + if (!getContainerPropertyIds().contains(propertyId) + && !columnGenerators.containsKey(propertyId)) { throw new IllegalArgumentException("Property '" + propertyId + "' was not found in the container"); } @@ -5772,7 +5773,7 @@ public class Table extends AbstractSelect implements Action.Container, * @param source * The source of the event * @param propertyId - * The id of the coumn + * The id of the column */ public ColumnCollapseEvent(Component source, Object propertyId) { super(source); |