public String deleteRowAction(UserInfoDto u) { try { apbl.deleteUserInfo(u); } catch (EntityNotFoundException e) { System.out.println(e.getMessage()); } return null; }
public String addAction() { UserInfoDto u = new UserInfoDto(); u.setBirthday(ubirthdate); u.setCity_id(ucity); u.setCountry_id(ucountry); u.setFirstName(ufirstname); u.setDomain_id(udomain); u.setEmail(uemail); u.setGroups(ugroup); u.setLastName(ulastname); u.setPassword(upassword); u.setZipcode_id(uzipcode); try { apbl.addUserInfo(u); } catch (EntityNotFoundException e) { System.out.println(e.getMessage()); } clearForm(); return null; }