708709710711712713714715
} } final ArrayList<Error> errors = new ArrayList<Error>(); validate(errors, this, new ArrayList<FieldGroup>()); if(errors.size() > 0) { throw new ValidationException(errors); } }
121122123124125126127128129130131
if(((IFieldWidget<Boolean>) fw).getValue() == Boolean.TRUE) { one = true; break; } } if(!one) throw new ValidationException("One option must be set as the default."); } return null; } }); }
680681682683684685686687
@Override public void validate() throws ValidationException { final ArrayList<Error> errors = new ArrayList<Error>(); validate(errors, this, new ArrayList<FieldGroup>()); if(errors.size() > 0) { throw new ValidationException(errors); } }