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.