private boolean validateIngredientList() {
boolean valid = true;
if(foodItemSet != null) {
for(FoodItemWrapper item : foodItemSet) {
RecipeItemWrapper recipeItem = item.getRecipeItem();
if(recipeItem == null || recipeItem.getDescription() == null || recipeItem.getDescription().trim().isEmpty()) {
valid = false;
item.setValid(false);
BeanUtil.addMessageFmt(FacesMessage.SEVERITY_ERROR, "error.ingredientList", "error.ingredientList.description", item.getName());
} else if (recipeItem.getQuantityType() == null) {
valid = false;
item.setValid(false);
BeanUtil.addMessageFmt(FacesMessage.SEVERITY_ERROR, "error.ingredientList", "error.ingredientList.quantityTypeMissing", item.getName());
} else {
item.setValid(true);