flow icon indicating copy to clipboard operation
flow copied to clipboard

Provide a refresh() method to override on page refresh (F5)

Open zanonmark opened this issue 6 years ago • 2 comments

In Vaadin 7-8, we could override the refresh() method which was invoked when a UI was annotated with @PreserveOnRefresh and a manual refresh (e.g.: F5) was fired to the page.

Vaadin14 is missing such a feature. Listening to a AfterNavigationEvent is not useful if you run a single-view page, because routing is not involved in this case.

Thanks, MZ

zanonmark avatar Sep 14 '19 13:09 zanonmark

I wonder why this ticket is still open as there is

    @Override
    public void afterNavigation(AfterNavigationEvent event) {
        if (event.isRefreshEvent()) {
           // Do the refresh stuff
        }
     }

TatuLund avatar Jan 29 '24 09:01 TatuLund

Good catch @TatuLund. This issue has been fixed by #15324, but it has not been back-ported to Vaadin 14. @mshabarov do you think we can close it anyway?

mcollovati avatar Jan 29 '24 09:01 mcollovati