Why the method UI.getCurrentin vaadin returns null, but getUI()actualy returns UIin the same case. For instance:
@Override
public boolean handleRequest(VaadinSession session,VaadinRequest request, VaadinResponse response)
throws IOException {
UI.getCurrent();
getUI();
return false;
}
I am trying to make a login page with a custom layout (to save autocomplete), as vaadin suppressed LoginForm.
source
share