Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

JavaScript components inside a TabSheet

Maxi K
7 years ago Sep 22, 2015 1:12pm
Tatu Lund
7 years ago Sep 23, 2015 2:27pm

Have you written beforeClientResponse() method in your class which extends AbstractJavaScriptComponent? TabSheet is not caching the hidden tabs, so when user changes tabs, the content is completelyh redrawn. Hence beforeClientResponse() needs to be implemented in javascript component, which takes care of calling appropriate function to redraw the content.

Maxi K
7 years ago Sep 23, 2015 3:26pm
Tatu Lund
7 years ago Sep 24, 2015 6:32am

Yes, that is how tabsheets work currently.