--- /dev/null
+package de.juplo.demo;
+
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.ModelAttribute;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+
+/**
+ * Controller to demonstrate the behavior of the checkbox
+ * @author Kai Moritz
+ */
+@Controller
+@Slf4j
+public class DemoController
+{
+ @RequestMapping("/")
+ public String display(@ModelAttribute Form form)
+ {
+ log.info("option={}", form.option);
+ return "form";
+ }
+}