selectItem = new SelectItem(); selectItem.setLabel(degree.getNome()); selectItem.setValue(degree.getIdInternal().toString()); list.add(selectItem); }
selectItem.setLabel("(L) " + degree.getNome()); } else if (degree.getTipoCurso().equals(DegreeType.MASTER_DEGREE)) { selectItem.setLabel("(M) " + degree.getNome()); } selectItem.setValue(degree.getIdInternal().toString()); list.add(selectItem);
    public List<SelectItem> getDegrees() throws FenixFilterException, FenixServiceException {        List<SelectItem> list = new ArrayList<SelectItem>();        SelectItem selectItem = null;        List<IDegree> allDegrees = readAllDomainObjects(Degree.class);        for (IDegree degree : allDegrees) {            if (degree.getTipoCurso().equals(DegreeType.DEGREE)) {                selectItem = new SelectItem();                selectItem.setLabel(degree.getNome());                selectItem.setValue(degree.getIdInternal().toString());                list.add(selectItem);            }        }        Collections.sort(list, new BeanComparator("label"));        ResourceBundle bundle = getResourceBundle("ServidorApresentacao/EnumerationResources");        addDefaultSelectedItem(list, bundle);        return list;    }