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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Pressing f5 not refreshing the screen
I have a mobile app which uses vaadin touchkit
On my UI class I have the refresh method and has @PreserveOnRefresh annotation. When I run the debugger when pressing f5 on MyWorkView it comes to the refresh method . It shows that the this -> MyWorkView but doesnt update?
@Override
protected void refresh(VaadinRequest request) {
this.getContent().markAsDirty();
}
this - MyWorkView (the screen I want to refresh)
what do you want to update? markAsDirty() is just a method for the framework to check if the component hierarchy has changed; it does not call any of your own methods. In more than 99% of cases you do not need to call markAsDirty().