Beispiel #1
0
  @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";
  }
Beispiel #2
0
 @ModelAttribute("classes")
 public Collection<Classe> populateClasses() {
   return Classe.findAllClasses();
 }