From b5ef191bd811b379fc72b744181e6453e0716eaf Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 11 Oct 2010 12:09:44 +0000 Subject: [PATCH] Better fix for #5770 - Clearing a Table column footer/header does not repaint Table svn changeset:15487/svn branch:6.4 --- src/com/vaadin/ui/Table.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java index 3c2611b0cc..775470e048 100644 --- a/src/com/vaadin/ui/Table.java +++ b/src/com/vaadin/ui/Table.java @@ -1031,10 +1031,9 @@ public class Table extends AbstractSelect implements Action.Container, if (header == null) { columnHeaders.remove(propertyId); - requestRepaint(); - return; + } else { + columnHeaders.put(propertyId, header); } - columnHeaders.put(propertyId, header); // Assures the visual refresh // FIXME: Is this really needed? Header captions should not affect @@ -3997,10 +3996,9 @@ public class Table extends AbstractSelect implements Action.Container, public void setColumnFooter(Object propertyId, String footer) { if (footer == null) { columnFooters.remove(propertyId); - requestRepaint(); - return; + } else { + columnFooters.put(propertyId, footer); } - columnFooters.put(propertyId, footer); requestRepaint(); } -- 2.39.5