Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zanonmark opened this issue Sep 14, 2019 · 2 comments
Open

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

zanonmark opened this issue Sep 14, 2019 · 2 comments

Comments

@zanonmark
Copy link

zanonmark commented Sep 14, 2019

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

@TatuLund
Copy link
Contributor

I wonder why this ticket is still open as there is

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

@mcollovati
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants