Projekt

Obecné

Profil

« Předchozí | Další » 

Revize bb2ed5bd

Přidáno uživatelem Vojtěch Danišík před asi 4 roky(ů)

BindingResult check moved from end to start in configuration page post method. Added BindingResult check in assembly page post method.

Zobrazit rozdíly:

src/main/java/vldc/aswi/web/controller/AssemblyController.java
169 169
                                     @RequestParam(required=false, value="exportPdf") String exportPdf,
170 170
                                     @RequestParam(required=false, value="saveConfiguration") String saveConfiguration)
171 171
    {
172

  
172 173
        ModelAndView modelAndView = new ModelAndView();
173 174

  
175
        if (bindingResult.hasErrors()) {
176
            // TODO: 04.05.2020 Error message
177
            modelAndView.setViewName("redirect:/");
178

  
179
            return modelAndView;
180
        }
181

  
174 182
        if (generateTable != null)
175 183
        {
176 184
            System.out.println("Generuj tabulku");

Také k dispozici: Unified diff