public List<SelectItem> getVoterSel() { Collection<Person> col = electionSessionBean.getAllPerson(); voterSel = new ArrayList<SelectItem>(); for (int i = 0; i < col.size(); i++) { voterSel.add(new SelectItem(((Person) col.toArray()[i]).getLogin())); } return voterSel; }
private Collection<Person> getPersonList() { return electionSessionBean.getAllPerson(); }