public void addBank() { fbsBank.setCompanyId(LoginBean.fbsLogin.getCompanyId()); fbsBankFacade.create(fbsBank); fbsBank = new FbsBank(); FacesContext context = FacesContext.getCurrentInstance(); context.addMessage(null, new FacesMessage("Congrates! Bank Successfully Added")); populate(); }
public void deleteBank() throws IOException { System.out.println("delete" + delBank.getBankName()); fbsBankFacade.remove(delBank); bankList.clear(); bankList = em.createNamedQuery("FbsBank.findAll").getResultList(); FacesContext.getCurrentInstance() .getExternalContext() .redirect("/FbsFaces/faces/jsfpages/Company/addBank.xhtml"); }
public void bank(FbsBank fbsBank) { // setFbsBank(fbsBank); delBank = fbsBank; System.out.println("bank" + fbsBank.getBankName()); }