Example #1
0
 public String saveAccount() {
   if (account.getId() == null) {
     try {
       accountFacade.createAccount(account);
     } catch (final Exception e) {
       LOG.warn(e.getMessage());
     }
   } else {
     try {
       accountFacade.editAccount(account);
     } catch (final Exception e) {
       LOG.warn(e.getMessage());
     }
   }
   return null;
 }
Example #2
0
 public AccountFormManaged() {
   account = new Account();
   account.setTypeid(Accounttype.A);
   account.setEnableid(Enable.T);
 }