Table data disappearing issue

Assalamu alaikum,

I have an issue in table component, i add a table component to a layout and there is a button that toggle that layout (visible/invisible).

The issue is : when i setVisible(false) to the layout then
refresh browser
then setVisible(true) table data disappeared !!!

final VerticalLayout tableContainer = new VerticalLayout();
		final Table table = new Table();

		table.setSizeFull();

		tableContainer.setStyleName(Reindeer.LAYOUT_BLUE);
		tableContainer.setHeight(100, Sizeable.UNITS_PIXELS);

		tableContainer.addComponent(table);
		tableContainer.setExpandRatio(table, 1);

		layout.addComponent(new Button("toggle", new Button.ClickListener() {

			@Override
			public void buttonClick(ClickEvent event) {
				tableContainer.setVisible(!tableContainer.isVisible());
			}
		}));
		layout.addComponent(tableContainer);

Any solution or workaround for that, thanks.

Sounds like a bug to me, you might want to
file a ticket
about this. As for a workaround, you could try adding/removing the layout with the button instead of toggling the visibility.

refreshRowCache() can be a workaround, also.

thanks a lot,