public class EmptyTextFieldValidationRule implements FieldValidationRule<String> {
public void validateField(DataModelField<String> field, DataModel model)
throws ModelValidationException {
if (StringUtilities.isNull_Empty_OrWhitespace(field.getValue())) {
String exceptionMessage = "Field may not be empty.";
throw new ModelValidationException(exceptionMessage);
}
}