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();


		tableContainer.setHeight(100, Sizeable.UNITS_PIXELS);

		tableContainer.setExpandRatio(table, 1);

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

			public void buttonClick(ClickEvent event) {

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,