Added a checkbox, that is stored in a field of an inner class
[demos/spring-boot] / src / main / java / de / juplo / demo / DemoController.java
index 483ca88..3f8d0dd 100644 (file)
@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
 
 
 /**
- * Controller to demonstrate the behavior of the checkbox
+ * Controller to demonstrate the behavior of checkboxes
  * @author Kai Moritz
  */
 @Controller
@@ -18,7 +18,7 @@ public class DemoController
   @RequestMapping("/")
   public String display(@ModelAttribute Form form)
   {
-    log.info("option={}", form.option);
+    log.info("option={}, inner={}", form.option, form.inner.option);
     return "form";
   }
 }