In the docs is said…
The validator is by default run whenever the user changes the value of a field
I have a validator registered for a textField name (test the length) with a status handler (show a label with the error message) and i show almost immediatly the error message when i type a few characters. How can i delay it?
binder.forField(name)
.withValidator( name -> name.lenth() >= 10)
. withValidationStatusHandler(status -> {
nameStatus.setValue(status.getMessage().orElse(""));
nameStatus.setVisible(status.isError()); })
.bind(Person::getName, Person::setName);