예제 #1
0
 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();
 }
예제 #2
0
  public roleManager() {
    RoleHelper<Roles> helper = new RoleHelper<Roles>();
    roleList = helper.showRole();
    //     roleList = new Role().showRole();

  }