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; }
public AccountFormManaged() { account = new Account(); account.setTypeid(Accounttype.A); account.setEnableid(Enable.T); }