I need to refresh the page in vaadin. I created a Refresh Button but the button is not working for refreshing the page.
Button Refresh = new Button("Refresh");
Refresh.addClickListener(new Button.ClickListener() {
@Override
public void buttonClick(Button.ClickEvent clickEvent) {
}
});
For Vaadin 10:
Call this in your Button ClickListener:
UI.getCurrent().getPage().reload();
Call this in your Button ClickListener:
Page.getCurrent().reload();
This reloads the page in the browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With