if(selectedIndex > -1)
selectedValue = box.getValue(selectedIndex);
if(selectedValue.equals(this.unselectedValue) && isRequired()) {
ValidationResult result = new ValidationResult();
ValidationError error = result.new ValidationError(null, getErrorMessage(allMessages, messages.mustSelectValue()));
result.getErrors().add(error);
return result;
}
return null;