List of usage examples for org.springframework.ui Model addAttribute
Model addAttribute(String attributeName, @Nullable Object attributeValue);
From source file:com.dub.skoolie.web.controller.admin.school.AdminSchoolController.java
@Secured("ROLE_DISTRICT_ADMIN") @RequestMapping(value = "/admin/schools", method = RequestMethod.GET) public ModelAndView getSchools(Model model) { model.addAttribute("schools", uiSchoolServiceImpl.getSchools()); model.addAttribute("schoolBean", new SchoolBean()); return new ModelAndView("admin/school/schools"); }
From source file:com.fengduo.spark.web.controller.account.LoginController.java
@RequestMapping(value = "/login", method = RequestMethod.POST) public String fail(@RequestParam(FormAuthenticationFilter.DEFAULT_USERNAME_PARAM) String userName, Model model) { model.addAttribute(FormAuthenticationFilter.DEFAULT_USERNAME_PARAM, userName); return "account/login"; }
From source file:com.oakhole.auth.web.LoginController.java
@RequestMapping(method = RequestMethod.POST) public String fail(@RequestParam(FormAuthenticationFilter.DEFAULT_USERNAME_PARAM) String username, Model model) { model.addAttribute(FormAuthenticationFilter.DEFAULT_USERNAME_PARAM, username); return "login"; }
From source file:com.xumpy.thuisadmin.controllers.pages.Admin.java
@RequestMapping(value = "admin/nieuwRekening/{rekeningId}") public String viewNieuwRekening(@PathVariable Integer rekeningId, Model model) { model.addAttribute("pk_id", rekeningId); return "admin/nieuwRekening"; }
From source file:com.xumpy.thuisadmin.controllers.pages.Admin.java
@RequestMapping(value = "admin/nieuwPersoon/{persoonId}") public String viewNieuwPersoon(@PathVariable Integer persoonId, Model model) { model.addAttribute("pk_id", persoonId); return "admin/nieuwPersoon"; }
From source file:com.xumpy.thuisadmin.controllers.pages.Admin.java
@RequestMapping(value = "admin/nieuwGroep/{groepId}") public String viewNieuwGroep(@PathVariable Integer groepId, Model model) { model.addAttribute("pk_id", groepId); return "admin/nieuwGroep"; }
From source file:com.zuoxiaolong.niubi.job.console.controller.MasterSlaveJobController.java
@RequestMapping(value = "") public String list(Model model) { model.addAttribute("jobs", masterSlaveJobService.getAllJobs()); return "master_slave_job_list"; }
From source file:com.zuoxiaolong.niubi.job.console.controller.StandbyJobController.java
@RequestMapping(value = "") public String list(Model model) { model.addAttribute("jobs", standbyJobService.getAllJobs()); return "standby_job_list"; }
From source file:de.dominikschadow.javasecurity.csrf.controller.OrderController.java
@PostMapping("order") public String order(Model model, @ModelAttribute Order order) { model.addAttribute("order", order); return "result"; }
From source file:kievreclama.task.controllers.DepartmentController.java
@RequestMapping public String getPageDepartment(Model model) { model.addAttribute("departments", departmentService.getList("department")); return "department"; }