Projekt

Obecné

Profil

« Předchozí | Další » 

Revize bb2ed5bd

Přidáno uživatelem Vojtěch Danišík před více než 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");
src/main/java/vldc/aswi/web/controller/ConfigurationController.java
105 105
    {
106 106
        ModelAndView modelAndView = new ModelAndView();
107 107

  
108
        if (bindingResult.hasErrors()) {
109
            // TODO: 04.05.2020 Error message
110
            modelAndView.setViewName("redirect:/");
111

  
112
            return modelAndView;
113
        }
114

  
108 115
        if (generateTable != null)
109 116
        {
110 117
            prepareForTable(newConfiguration);
......
137 144
            modelAndView.setViewName("redirect:/configuration?configurationID=" + configuration.getId());
138 145
        }
139 146

  
140
        if (bindingResult.hasErrors()) {
141
            // TODO: 04.05.2020 Error message
142
            modelAndView.setViewName("redirect:/");
143

  
144
            return modelAndView;
145
        }
146

  
147

  
148

  
149

  
150

  
151 147
        return modelAndView;
152 148
    }
153 149

  

Také k dispozici: Unified diff