Ejemplo n.º 1
0
  public void deleteChain(Country obj) {
    System.out.println("delete chian");
    if (countryFacade.deleteChain(obj.getObjectId())) {
      addMessage("delete ok");
      //            updateListDao();

      RequestContext.getCurrentInstance().update("formT:dtable");
    } else {
      addMessage("delete faled");
    }
    RequestContext.getCurrentInstance().update("formT:growl");
  }
Ejemplo n.º 2
0
  public void deleterow(Country obj) {
    System.out.println("delete row");
    System.out.println("obj.id=" + obj.getObjectId());
    try {
      obj.delete();
      addMessage("Record deleted");
      //            updateListDao();
      RequestContext.getCurrentInstance().update("formT:dtable");
    } catch (ParseException e) {
      addMessage("Record delete faled");
      e.printStackTrace();
    }

    RequestContext.getCurrentInstance().update("formT:growl");
  }