示例#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();
 }