Exemplo n.º 1
0
 public void deleteGroup(AjaxBehaviorEvent event) {
   Group group = groupModel.getRowData();
   DaoFactory.getInstance().getGroupDao().deleteGroup(group.getId());
   groupList.remove(group);
   fillGroupItem();
   //        getAllGroup();
 }
Exemplo n.º 2
0
 private void fillGroupItem() {
   groupItem = new ArrayList<SelectItem>();
   for (Group group : groupList) {
     groupItem.add(new SelectItem(group, group.getName()));
   }
 }