예제 #1
0
  @ModelAttribute("anneescolaires")
  public Collection<AnneeScolaire> populateEleves() {

    List<AnneeScolaire> list = new ArrayList<AnneeScolaire>();

    list.add(AnneeScolaire.getCurrentAnneeScolaire());

    return list;
  }
예제 #2
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";
  }