... UISelectItems selectItemsComponent = new UISelectItems(); selectItemsComponent.setValue(selectItems); nextQuestionDropDown.getChildren().add(selectItemsComponent); ...
public UISelectItems getCurricularRuleItems() throws FenixServiceException { if (curricularRuleItems == null) { curricularRuleItems = new UISelectItems(); curricularRuleItems.setValue(readCurricularRulesLabels()); } return curricularRuleItems; }
public UISelectItems getFutureExecutionSemesterItems() { if (futureExecutionSemesterItems == null) { futureExecutionSemesterItems = new UISelectItems(); futureExecutionSemesterItems.setValue(readFutureExecutionSemesterLabels()); } return futureExecutionSemesterItems; }
public UISelectItems getExecutionSemesterItems() { if (executionSemesterItems == null) { executionSemesterItems = new UISelectItems(); executionSemesterItems.setValue(readExecutionSemesterLabels()); } return executionSemesterItems; }
public UISelectItems getCompetenceCourseExecutionSemesters() { if (competenceCourseExecutionSemesters == null) { competenceCourseExecutionSemesters = new UISelectItems(); competenceCourseExecutionSemesters.setValue(readCompetenceCourseExecutionSemesterLabels()); } return competenceCourseExecutionSemesters; }
public UISelectItems getDepartmentUnitItems() { if (departmentUnitItems == null) { departmentUnitItems = new UISelectItems(); departmentUnitItems.setValue(readDepartmentUnitLabels()); } return departmentUnitItems; }
public UISelectItems getEndExecutionPeriodItemsForCompositeRule() throws FenixServiceException { if (endExecutionPeriodItemsForCompositeRule == null) { endExecutionPeriodItemsForCompositeRule = new UISelectItems(); final List<SelectItem> values = new ArrayList<SelectItem>(readExecutionPeriodItems()); values.add(0, new SelectItem(NO_SELECTION_STRING, BundleUtil.getString(Bundle.BOLONHA, "opened"))); endExecutionPeriodItemsForCompositeRule.setValue(values); } return endExecutionPeriodItemsForCompositeRule; }
public UISelectItems getEndExecutionPeriodItemsForRule() { if (endExecutionPeriodItemsForRule == null) { endExecutionPeriodItemsForRule = new UISelectItems(); final List<SelectItem> values = new ArrayList<SelectItem>(readExecutionPeriodItems()); values.add(0, new SelectItem(NO_SELECTION_STRING, BundleUtil.getString(Bundle.BOLONHA, "opened"))); endExecutionPeriodItemsForRule.setValue(values); } return endExecutionPeriodItemsForRule; }
public void onChangeExecutionSemester(ValueChangeEvent event) { setExecutionSemesterID((String) event.getNewValue()); getDepartmentUnitItems().setValue(readDepartmentUnitLabels()); getScientificAreaUnitItems().setValue(readScientificAreaUnitLabels(null)); getCompetenceCourseGroupUnitItems().setValue(readCompetenceCourseGroupUnitLabels(null)); }
public UISelectItems getDepartmentUnitItems() { if (departmentUnitItems == null) { departmentUnitItems = new UISelectItems(); departmentUnitItems.setValue(readDepartmentUnits(getSelectedCurricularRuleType())); } return departmentUnitItems; }
public UISelectItems getScientificAreaUnitItems() { if (scientificAreaUnitItems == null) { scientificAreaUnitItems = new UISelectItems(); scientificAreaUnitItems.setValue(readScientificAreaUnitLabels(getTransferToDepartmentUnitID())); } return scientificAreaUnitItems; }
public UISelectItems getCompetenceCourseGroupUnitItems() { if (competenceCourseGroupUnitItems == null) { competenceCourseGroupUnitItems = new UISelectItems(); competenceCourseGroupUnitItems.setValue(readCompetenceCourseGroupUnitLabels(getTransferToScientificAreaUnitID())); } return competenceCourseGroupUnitItems; }
public UISelectItems getDegreeModuleItems() { if (degreeModuleItems == null) { degreeModuleItems = new UISelectItems(); degreeModuleItems.setValue(readDegreeModules(getSelectedCurricularRuleType())); } return degreeModuleItems; }
public UISelectItems getCourseGroupItems() { if (courseGroupItems == null) { courseGroupItems = new UISelectItems(); courseGroupItems.setValue(readParentCourseGroups(getSelectedCurricularRuleType())); } return courseGroupItems; }
public void onChangeCurricularRuleTypeDropDown(ValueChangeEvent event) { getDegreeModuleItems().setValue(readDegreeModules((String) event.getNewValue())); getCourseGroupItems().setValue(readParentCourseGroups((String) event.getNewValue())); getDegreeItems().setValue(readBolonhaDegrees((String) event.getNewValue(), getSelectedDegreeType())); getDepartmentUnitItems().setValue(readDepartmentUnits((String) event.getNewValue())); }
public void onChangeDepartmentUnit(ValueChangeEvent event) { setTransferToDepartmentUnitID((String) event.getNewValue()); getScientificAreaUnitItems().setValue(readScientificAreaUnitLabels((String) event.getNewValue())); getCompetenceCourseGroupUnitItems().setValue(readCompetenceCourseGroupUnitLabels(null)); }
protected void validateValue(FacesContext context, Object value) { UISelectItems selectItems = new UISelectItems(); selectItems.setTransient(true); selectItems.setValue(getCountriesChoicesAsSelectItemList()); getChildren().add(selectItems); super.validateValue(context,value); } }
protected void validateValue(FacesContext context, Object value) { UISelectItems selectItems = new UISelectItems(); selectItems.setTransient(true); selectItems.setValue(getLanguagesChoicesAsSelectItemList()); getChildren().add(selectItems); super.validateValue(context,value); } }
protected void setProperties(UIComponent component) { super.setProperties(component); if (null != value) { if (!value.isLiteralText()) { component.setValueExpression("value", value); } else { ((UISelectItems) component).setValue( value.getExpressionString()); } } }
protected void setProperties(UIComponent component) { super.setProperties(component); if ( _value != null ) { if (!_value.isLiteralText()) { component.setValueExpression("value", _value); } else { ((UISelectItems) component).setValue( _value.getExpressionString()); } } }