actionErrors2.add("error.noGroup", error2);
saveErrors(request, actionErrors2);
return mapping.findForward("viewShiftsAndGroups");
}
InfoSiteShifts infoSiteShifts = null;
try {
infoSiteShifts = ReadGroupingShifts.run(groupPropertiesCodeString, studentGroupCodeString);
} catch (ExistingServiceException e) {
ActionErrors actionErrors = new ActionErrors();
ActionError error = null;
error = new ActionError("error.noProject");
actionErrors.add("error.noProject", error);
saveErrors(request, actionErrors);
return mapping.findForward("viewExecutionCourseProjects");
} catch (InvalidSituationServiceException e) {
ActionErrors actionErrors = new ActionErrors();
ActionError error = null;
error = new ActionError("error.noGroup");
actionErrors.add("error.noGroup", error);
saveErrors(request, actionErrors);
return mapping.findForward("viewShiftsAndGroups");
} catch (FenixServiceException e) {
throw new FenixActionException(e);
}
List shifts = infoSiteShifts.getShifts();
if (shifts.size() == 0) {
ActionErrors actionErrors3 = new ActionErrors();
ActionError error3 = null;
// Create an ACTION_ERROR
error3 = new ActionError("errors.enrollStudentGroupShift.allShiftsFull");
actionErrors3.add("errors.enrollStudentGroupShift.allShiftsFull", error3);
saveErrors(request, actionErrors3);
request.setAttribute("groupPropertiesCode", groupPropertiesCodeString);
return mapping.findForward("viewStudentGroupInformation");
}
ArrayList shiftsList = new ArrayList();
InfoShift oldInfoShift = infoSiteShifts.getOldShift();
if (shifts.size() != 0) {
shiftsList.add(new LabelValueBean("(escolher)", ""));
InfoShift infoShift;
Iterator iter = shifts.iterator();
String label, value;