From: Kai Moritz Date: Tue, 21 Jan 2020 19:58:17 +0000 (+0100) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=5463f9b62faeca66b2bf5c0b5fec45f4e8222350;p=demos%2Fspring-boot WIP --- diff --git a/src/main/java/de/juplo/demo/DemoController.java b/src/main/java/de/juplo/demo/DemoController.java index 25b500b..a83a4b1 100644 --- a/src/main/java/de/juplo/demo/DemoController.java +++ b/src/main/java/de/juplo/demo/DemoController.java @@ -56,11 +56,11 @@ public class DemoController return "form"; } - @RequestMapping(path = "/", params = "add=row") - public String addRow(@ModelAttribute Form form, @RequestParam Integer card) + @RequestMapping(path = "/", params = "add!=card") + public String addRow(@ModelAttribute Form form, @RequestParam Integer add) { - LOG.info("Adding row {} to card #{}", form.row.get(card), card); - form.cards.get(card).put(form.row.get(card), Boolean.FALSE); + LOG.info("Adding row {} to card #{}", form.row.get(add), add); + form.cards.get(add).put(form.row.get(add), Boolean.FALSE); return "form"; }