0

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 ?

NimChimpsky
  • 46,453
  • 60
  • 198
  • 311

1 Answers1

0
String bgColor = cell.getAppearance().getInputElement(passwordField.getElement()).getComputedStyle("background-color");

And then if its yellow I can enable button.

Hacktastic!

NimChimpsky
  • 46,453
  • 60
  • 198
  • 311