Question

I am using vaadin to make a web application. The web application is composed of different views and one main UI page, the UI page is where the navigator is declared and the view pages are added to it. I have a couple of different views that the navigator navigates to, and each view has a menu panel (which is not a view it is a class that I make visible once the user logs in). Everything works fine when you navigate to the different views (you see the menu panel), but when you refresh the page (hit refresh button) the menu panel disappears.

I am thinking it is caused by the navigator because it is the only thing that is controlling the navigation between different views, but have not figured out exactly what is the problem

Was it helpful?

Solution

To preserve the application on a refresh you add the @PreserveOnRefresh annotation to the main UI file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top