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