I have the following code to check whether my password field isValid, which then enables the login button.
Scheduler.get().scheduleFixedDelay(new Scheduler.RepeatingCommand() {
@Override
public boolean execute() {
login.setEnabled(isValid()); // checks password field
return !hasLoggedIn;
}
}, 100);
However my
private PasswordField password;
returns null all the time even when filled/remembered by browser - until a key is pressed/mouse clicked. If I press any key, or click the mouse button (anywhere on webpage), the password field then returns a value (and validates correctly).
How can I auto enable login button when browser filled password field is remembered ?