@PostConstruct public void load() { if (acronym != null && !acronym.isEmpty()) { this.country = locationBean.findCountry(acronym); } else { this.country = new Country(); } }
public String remove() { locationBean.removeCountry(country.getAcronym()); return "countries?faces-redirect=true"; }
public String save() { locationBean.saveCountry(this.country); return "countries?faces-redirect=true"; }
public List<Country> getCountries() { return locationBean.findCountries(); }