Пример #1
0
 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();
 }
Пример #2
0
 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");
 }
Пример #3
0
 public void bank(FbsBank fbsBank) {
   // setFbsBank(fbsBank);
   delBank = fbsBank;
   System.out.println("bank" + fbsBank.getBankName());
 }