private ValidationResult allCriteriaSatisfied(FormCheckerElement elem) {
		for (Criterion criterion : elem.getCriteria()) {
			ValidationResult vr = criterion.validate(elem);
			if (!vr.isValid()) {
				return vr;
			}
		}

		return ValidationResult.ok();
	}
private ValidationResult allCriteriaSatisfied(FormCheckerElement elem) {
		for (Criterion criterion : elem.getCriteria()) {
			ValidationResult vr = criterion.validate(elem);
			if (!vr.isValid()) {
				return vr;
			}
		}

		return ValidationResult.ok();
	}
private ValidationResult allCriteriaSatisfied ( FormCheckerElement elem ) { for ( Criterion criterion : elem . getCriteria ( ) ) { ValidationResult vr = criterion . validate ( elem ) ; if ( ! vr . isValid ( ) ) { return vr ; } } return ValidationResult . ok ( ) ; }
RFE: Maybe return here an array? So we can have more than one error-message per field.
RFE : Maybe return here an array? So we can have more than one error - message per field .