HtmlCheckBoxList dcpCheckBoxList = new HtmlCheckBoxList();
for (DegreeCurricularPlan degreeCurricularPlan : bean.getExecutionCourse().getAttendsDegreeCurricularPlans()) {
MetaObject dcpMetaObject =
MetaObjectFactory.createObject(degreeCurricularPlan, new Schema(DegreeCurricularPlan.class));
HtmlCheckBox option =
dcpCheckBoxList.addOption(new HtmlLabel(degreeCurricularPlan.getName()), dcpMetaObject.getKey()
.toString());
option.setChecked(bean.getDegreeCurricularPlans().contains(degreeCurricularPlan));
}
row.createCell().setBody(dcpCheckBoxList);