public void deleteRole() { ObjectHelper<Roles> obj = new ObjectHelper<Roles>(); try { obj.delete(selected); FacesMessage msg = new FacesMessage("Delete Success"); FacesContext.getCurrentInstance().addMessage(null, msg); } catch (ObjectException ex) { FacesMessage msg = new FacesMessage("Delete Error, Because " + ex.getMessage()); FacesContext.getCurrentInstance().addMessage(null, msg); } RoleHelper<Roles> helper = new RoleHelper<Roles>(); roleList = helper.showRole(); // roleList = new Role().showRole(); }
public roleManager() { RoleHelper<Roles> helper = new RoleHelper<Roles>(); roleList = helper.showRole(); // roleList = new Role().showRole(); }