I want to clear the value of the password field in login screen on clicking of browsers refresh page.
i tired using passwordField.clear(); in onInit method but ir seems like on refresh click the onInint method is not getting executed
help me with this problem
pinyazhin
(Roman Pinyazhin)
3
If you want to disable default values (admin/admin) in login screen you should:
To handle refreshing the page, subscribe to UIRefreshEvent in your login screen:
@EventListener
protected void onPageRefresh(UIRefreshEvent event) {
// do smth
}