Contribution contribution = getSessionBean1().getContribution();
VolunteerApplication application = getSessionBean1().getContributionDataProvider().getApplication();
if (!application.getContributions().contains(contribution)) {
application.addContribution(contribution);
}
ctrl.update(application);
return "success";
}
public String buttonCancel_action() {