Search code examples
javatabsvaadinttabsheet

How to create Vaadin tabsheet without components?


I need the functionality of a Vaadin Tabsheet. But don't need a component for each tab.

Instead, I have only one component (separate table) and it will be manipulated with the tab sheet actions. For now, I have assigned hidden labels to tabs.

Is there a better way to do this?


Solution

  • If anyone one ran into the same scenario, here is how I solved it.

    Instead of adding hidden labels, I added labels without captions.so no need to hide them, because they have nothing to show. :).

    Don't set their visibility to hidden. It will cause problems since Vaadin doesn't send hidden components to the client.