@ModelAttribute("anneescolaires") public Collection<AnneeScolaire> populateEleves() { List<AnneeScolaire> list = new ArrayList<AnneeScolaire>(); list.add(AnneeScolaire.getCurrentAnneeScolaire()); return list; }
@RequestMapping(value = "/config3", params = "form", method = RequestMethod.GET) public String createForm3(Model uiModel) { uiModel.addAttribute("saisieNoteProcessBeans", new ArrayList<SaisieNoteProcessBean>()); uiModel.addAttribute("saisieNoteProcessBean", new SaisieNoteProcessBean()); uiModel.addAttribute("anneescolaire", AnneeScolaire.getCurrentAnneeScolaire()); uiModel.addAttribute("classe", Classe.findClasse(new Long(1))); uiModel.addAttribute("inscription", Inscription.findInscription(new Long(9))); uiModel.addAttribute("evaluation", Evaluation.getCurrentEvaluation()); uiModel.addAttribute("etablissement", Etablissement.findEtablissement(new Long(1))); addDateTimeFormatPatterns(uiModel); return "noteses/saisieNoteClasse3"; }