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