Our Vaadin application has a TabSheet which contains Tabs consisting of a VerticalLayout with Embedded external web content in it. In the Vaadin 6 version of our application the embedded pages kept their state even though the user switched between tabs. However, after Vaadin 7 migration, the user finds the tab refreshed (emptied to its initial state) when he/she returns to the tab. Our code has not changed in the migration which refers to the change being on Vaadin side.
Has anyone found workarounds to this? Or Vaadin guys, any plans on fixing the issue? For our users this is a major problem since they currently can’t work with several tabs at once.
Yes. This is a huge problem for me. I’ve just finished converting my 6.x app for 7.1 and discovered this issue. In version 6.x, the divs containing the non-selected tabs simply had a visibility of “none” so the web pages stayed resident in the browser. Now, non-selected tabs appear to be removed from the dom altogether. Reconstructing the tab content is possible when the server maintains the complete state of the page, but this is not the case with embedded web pages. I need the old behavior back, or the tabsheet switching logic needs to be smart enough to keep browser frames resident in the dom.
I got similar behaviour using SllitPanel putting to 0 and 100 (with .setSplitPosition(0)) in that case the browser doesn’t refresh and gets hide and the other content is show, the problem is that with split you can have only 2 components, then Tab behavior as was in 6 is better.
note @PreserveOnRefresh in this case didn’t make any difference
Same problem here. We have SVG drawn on tabs. You can add to it or move it around. When you select another tab and come back to the tab it refreshes the SVG back to what was drawn on the tab when the tab was created.
Same behaviour here, when switching tab with an iFrame, content of the iFrame is re-init.
This issue is logged on http://dev.vaadin.com/ticket/9191 ticket but is marked as “wontfix”.
Yes, i too have the same problem with latest 7.1.10 and 7.2.4. in my case i have a table within the tabs and when switch tabs it refresh the whole tab and gives a while blank tab for few seconds and then renders the content again. @PreserveOnRefresh does not have any impact on the screen. any quick work around available.
The thread is quiet old but the problem still exist. I have the same problem in my application. Did anyone find a workout? Or is there an official solution to solve that problem?
I’m having exactly the same problem as
Cup Of Tea with Vaadin 7.3.4. The ticket mentioned in his post above is closed, but I do not agree. When I open a website in one Tab it should keep its state when I return to that Tab after visiting another Tab in the Tabsheet.
I’m wondering if any of the above posters has found a workaround in the mean time?
I’m running into this problem with any method of hiding/showing a BrowserFrame… in every circumstance, not just TabSheets, it refreshes. Any workarounds from the Vaadin team would be appreciated!