I am using vaadin 24.6.0 through java spring boot. To add a tabsheet I have created the below code. The tabs do show up correctly on the first view but on browser refresh the tabs are lost. I just see the contents of the first tab while the second tab text is only shown. It cannot be clicked for viewing.
please find the screenshots attached. Kindly suggest what could be going wrong. Thanks.
Initial view
On browser refresh
Java code
public class ClusterView extends Div {
public ClusterView() {
TabSheet tabSheet = new TabSheet();
tabSheet.add("Elasticsearch Cluster Status", createElasticsearchClusterStatus());
tabSheet.add("Zeebe Cluster Status", createZeebeClusterStatus());
add(tabSheet);
}
//..other methods
}
added to your vaadin-maven-plugin should fix it. But it’s more like a workaround and a proper reproduceable project would help the Vaadin Team to identify the edge case and fix it properly.
That flag I always had in my mvn command but i didn’t execute it earlier since it I was doing all this locally from Intellij. mvn -B clean vaadin:build-frontend -Pproduction