コード例 #1
0
 @RequestMapping(value = "/list", method = RequestMethod.GET)
 public String todoList(Model model, Integer offset, Integer maxResults) {
   model.addAttribute("todoList", toDoItemService.getPageList(offset, maxResults));
   model.addAttribute("count", toDoItemService.count());
   model.addAttribute("offset", offset);
   return "/todo-list";
 }
コード例 #2
0
 @RequestMapping(value = "/list/notDoneList", method = RequestMethod.GET)
 public String notDoneList(Model model, Integer offset, Integer maxResults) {
   model.addAttribute(
       "notDoneList", toDoItemService.findByStatus(Status.NOT_DONE, offset, maxResults));
   model.addAttribute("count", toDoItemService.count());
   model.addAttribute("offset", offset);
   return "/not-done-list";
 }
コード例 #3
0
 @RequestMapping(value = "/list/performedList", method = RequestMethod.GET)
 public String performedList(Model model, Integer offset, Integer maxResults) {
   model.addAttribute(
       "performedList", toDoItemService.findByStatus(Status.PERFORMED, offset, maxResults));
   model.addAttribute("count", toDoItemService.count());
   model.addAttribute("offset", offset);
   return "/performed-list";
 }