Web Page Refresh Event
UiRefreshEvent is an application event sent on each web page refresh. It’s a UI Event, so it can be handled only by event listener methods of UI components and view controllers.
@Route(value = "users", layout = MainView.class)
@ViewController(id = "User.list")
@ViewDescriptor(path = "user-list-view.xml")
@LookupComponent("usersDataGrid")
@DialogMode(width = "64em")
public class UserListView extends StandardListView<User> {
    @EventListener
    public void onPageRefresh(UiRefreshEvent event) {
        getViewData().loadAll();
    }
}Was this page helpful?
        
        
    Thank you for your feedback