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"); }
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"); }
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"); }