summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/ui/Table.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2009-01-13 13:17:00 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2009-01-13 13:17:00 +0000
commit9d0c94a56d7e1c26a3e39cebc61b2c3bc635c8ef (patch)
tree23c79ec838bb6e8902b2c2ec7e345365aa337437 /src/com/itmill/toolkit/ui/Table.java
parent8da362da45e96ed4b5244ed583d96d884f8ae0e5 (diff)
downloadvaadin-framework-9d0c94a56d7e1c26a3e39cebc61b2c3bc635c8ef.tar.gz
vaadin-framework-9d0c94a56d7e1c26a3e39cebc61b2c3bc635c8ef.zip
fixes #2456
svn changeset:6520/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/Table.java')
-rw-r--r--src/com/itmill/toolkit/ui/Table.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/ui/Table.java b/src/com/itmill/toolkit/ui/Table.java
index d5b8b81ce8..2b528780ca 100644
--- a/src/com/itmill/toolkit/ui/Table.java
+++ b/src/com/itmill/toolkit/ui/Table.java
@@ -2484,7 +2484,13 @@ public class Table extends AbstractSelect implements Action.Container,
"Can not add the same GeneratedColumn twice, id:" + id);
} else {
columnGenerators.put(id, generatedColumn);
- visibleColumns.add(id);
+ /*
+ * add to visible column list unless already there (overriding
+ * column from DS)
+ */
+ if (!visibleColumns.contains(id)) {
+ visibleColumns.add(id);
+ }
resetPageBuffer();
refreshRenderedCells();
}