Exemple #1
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");
  }
Exemple #2
0
  public void saveRec(Country obj) {

    System.out.println("obj=" + obj);
    try {
      obj.save();
      addMessage("Saved");
    } catch (ParseException e) {
      addMessage("Save faled");
      e.printStackTrace();
    }
    RequestContext.getCurrentInstance().update("formT:growl");
  }
Exemple #3
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");
  }