List of usage examples for org.springframework.ui Model addAttribute
Model addAttribute(String attributeName, @Nullable Object attributeValue);
From source file:org.easit.core.controllers.facebook.FacebookProfileController.java
@RequestMapping(value = "/facebook/profile", method = RequestMethod.GET) public String profile(Model model) { model.addAttribute("profile", facebook.userOperations().getUserProfile()); return "facebook/profile"; }
From source file:com.github.dbourdette.glass.web.controller.LogsController.java
/** * Used for details popup from log list/* www . ja va 2s . c o m*/ */ @RequestMapping("/traces/{executionId}") public String traces(@PathVariable Long executionId, @RequestParam(defaultValue = "1") Integer index, Model model) { model.addAttribute("page", JobLogs.getLogs(executionId, Query.oneBasedIndex(index).withSize(PAGE_SIZE))); return "traces"; }
From source file:com.mum.controller.CardController.java
@RequestMapping(value = "/{cardId}", method = RequestMethod.GET) public String getCard(@PathVariable(value = "cardId") String cardId, Model model) { System.out.println("load get:: " + cardId); model.addAttribute("cardId", cardId); return "card"; }
From source file:com.nirwansyah.dicka.springboot.controller.ControllerNasabah.java
@RequestMapping(value = "/Nasabah", method = RequestMethod.GET) public String index(Model model) { model.addAttribute("title", "Data Nasabah"); model.addAttribute("listnasabah", nasabahDAO.findAll()); return "nasabah/index"; }
From source file:de.htwkleipzig.mmdb.mvc.controller.HomeController.java
@RequestMapping(value = "/") public String elasticstart(Model model) { LOGGER.info("startpage home"); model.addAttribute("attribute", "hier kann text drin stehen"); return "home"; }
From source file:org.callistasoftware.netcare.web.mobile.controller.MobileController.java
/** * @param activity/*from w ww.j ava2s. c o m*/ * @param m * @return */ @RequestMapping(value = "/activity/{activity}/report", method = RequestMethod.GET) public final String displayReportPage(@PathVariable(value = "activity") final Long activity, final Model m) { m.addAttribute("activityId", activity); return "report"; }
From source file:ru.trett.cis.controllers.DeviceModelController.java
@RequestMapping(value = "/list") public String list(Model model) { model.addAttribute("object", "DeviceModel"); return "devicemodel/table"; }
From source file:ru.trett.cis.controllers.HomeController.java
@RequestMapping public String mainPage(Model model) { model.addAttribute("track", inventoryService.list(Tracking.class, 0, 10)); model.addAttribute("resultMapperList", inventoryService.assetGroupByStatus()); return "home/index"; }
From source file:com.bill99.yn.webmgmt.web.account.UserAdminController.java
@RequestMapping(value = "create", method = RequestMethod.GET) public String createForm(Model model) { model.addAttribute("user", new User()); model.addAttribute("action", "create"); return "account/adminUserForm"; }
From source file:com.bill99.yn.webmgmt.web.account.UserAdminController.java
@RequestMapping(value = "update/{id}", method = RequestMethod.GET) public String updateForm(@PathVariable("id") Long id, Model model) { model.addAttribute("user", accountService.getUser(id)); model.addAttribute("action", "update"); return "account/adminUserForm"; }