.map(b -> b.validate(false)).collect(Collectors.toList());
/** * Informs the Binder that a value in Binding was changed. This method will * trigger validating and writing of the whole bean if using * {@link #setBean(Object)}. If using {@link #readBean(Object)} only the * field validation is run. * * @param binding * the binding whose value has been changed * @param event * the value change event * @since 8.2 */ protected void handleFieldValueChange(Binding<BEAN, ?> binding, ValueChangeEvent<?> event) { changedBindings.add(binding); if (getBean() != null) { doWriteIfValid(getBean(), changedBindings); } else { binding.validate(); } }
/** * Validates the field value and returns a {@code ValidationStatus} * instance representing the outcome of the validation. This method is a * short-hand for calling {@link #validate(boolean)} with * {@code fireEvent} {@code true}. * * @see #validate(boolean) * @see Binder#validate() * @see Validator#apply(Object, ValueContext) * * @return the validation result. */ public default BindingValidationStatus<TARGET> validate() { return validate(true); }