Action when tab becomes active

I’m using Vaadin for an application with REST services. The application have 5 tabs, each one with specific behavior.

In one of these tabs I have a table that is built using the response of one service.

Is it possible (and if yes, how?), when the user clicks on the tab to perform an action (invoke the service), so each time the tab is active the information displayed in the table is up-to-date?


Sure, with TabSheet.SelectedTabChangeListener.

I don’t know how I’ve missed this.