protected RequestBean1 getRequestBean1() {
return (RequestBean1)getBean("RequestBean1");
}
public String buttonValidate_action() {
VolunteerApplicationController ctrl = new VolunteerApplicationController();
Contribution contribution = getSessionBean1().getContribution();
VolunteerApplication application = getSessionBean1().getContributionDataProvider().getApplication();
if (!application.getContributions().contains(contribution)) {
application.addContribution(contribution);
}
ctrl.update(application);
return "success";
}