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