container.addChild(hiddenExtraCurricularEnrollments);
generateGroup(container, getBolonhaStudentEnrollmentBean().getStudentCurricularPlan(), getBolonhaStudentEnrollmentBean()
.getRootStudentCurriculumGroupBean(), getBolonhaStudentEnrollmentBean().getExecutionPeriod(), 0);
HtmlTable groupTable = createGroupTable(container, 0);
HtmlTableRow htmlTableRow = groupTable.createRow();
htmlTableRow.setClasses(getRenderer().getGroupRowClasses());
htmlTableRow.createCell().setBody(new HtmlText("Other Curricular Units", false));
HtmlTableCell cell = htmlTableRow.createCell();
cell.setClasses("aright");
HtmlCheckBox checkBox = new HtmlCheckBox(false);
final String name = "degreeModuleToEnrolCheckBox";
checkBox.setName(name);
checkBox.setUserValue("true");
checkBox.setChecked(true);
cell.setBody(checkBox);
groupTable = createCoursesTable(container, 0);
NoCourseGroupCurriculumGroup group =
getBolonhaStudentEnrollmentBean().getStudentCurricularPlan().getNoCourseGroupCurriculumGroup(
NoCourseGroupCurriculumGroupType.STANDALONE);
HashSet<CurricularCourse> set = new HashSet<CurricularCourse>();
ErasmusBolonhaStudentEnrollmentBean erasmusBolonhaStudentEnrollmentBean =
(ErasmusBolonhaStudentEnrollmentBean) getBolonhaStudentEnrollmentBean();
set.addAll(erasmusBolonhaStudentEnrollmentBean.getCandidacy().getCurricularCoursesSet());
for (Enrolment enrolment : group.getEnrolments()) {
set.add(enrolment.getCurricularCourse());
}
for (CurricularCourse curricularCourse : set) {
if (erasmusBolonhaStudentEnrollmentBean.getStudentCurricularPlan().getEnrolmentByCurricularCourseAndExecutionPeriod(
curricularCourse, erasmusBolonhaStudentEnrollmentBean.getExecutionPeriod()) != null) {
if (!group.hasEnrolmentWithEnroledState(curricularCourse,
erasmusBolonhaStudentEnrollmentBean.getExecutionPeriod())) {
continue;
}
}
if (!isContextValid(curricularCourse)) {
continue;
}
htmlTableRow = groupTable.createRow();
HtmlTableCell cellName = htmlTableRow.createCell();
cellName.setClasses(getRenderer().getCurricularCourseToEnrolNameClasses());
String degreeName = curricularCourse.getName();