I want to validate that a required combo-box is filled in my form.
I learned that we can validate required TextFields with the following code:
userName.setRequiredIndicatorVisible(true);
binder.forField(userName).withValidator(
new StringLengthValidator(Messages.get("username.required"), 1, null))
.bind(User::getUsername, User::setUsername);
is there any similar implementation for ComboBox ? I’ll really appreciate if someone can leave a small example here.
Thanks ![]()