return mapping.findForward("edit-candidacy-documents");
}
public ActionForward editCandidacyDocuments(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws FenixServiceException, IOException {
CandidacyProcessDocumentUploadBean uploadBean =
(CandidacyProcessDocumentUploadBean) getObjectFromViewState("individualCandidacyProcessBean.document.file");
try {
IndividualCandidacyDocumentFile documentFile =
createIndividualCandidacyDocumentFile(uploadBean, uploadBean.getIndividualCandidacyProcess()
.getPersonalDetails().getDocumentIdNumber());
uploadBean.setDocumentFile(documentFile);
executeActivity(uploadBean.getIndividualCandidacyProcess(), "EditPublicCandidacyDocumentFile", uploadBean);
request.setAttribute("individualCandidacyProcess", uploadBean.getIndividualCandidacyProcess());
return backToViewCandidacyInternal(mapping, form, request, response);
} catch (final DomainException e) {
invalidateDocumentFileRelatedViewStates();
CandidacyProcessDocumentUploadBean bean = new CandidacyProcessDocumentUploadBean();
bean.setIndividualCandidacyProcess(uploadBean.getIndividualCandidacyProcess());
request.setAttribute("candidacyDocumentUploadBean", bean);
addActionMessage("error", request, e.getMessage(), e.getArgs());
request.setAttribute(getIndividualCandidacyProcessBeanName(), getIndividualCandidacyProcessBean());
return mapping.findForward("edit-candidacy-documents");