Пример #1
0
 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;
 }
Пример #2
0
 private Collection<Person> getPersonList() {
   return electionSessionBean.getAllPerson();
 }