List of usage examples for org.springframework.ui Model addAttribute
Model addAttribute(String attributeName, @Nullable Object attributeValue);
From source file:ru.trett.cis.controllers.DeviceTypeController.java
@RequestMapping(value = "list") public String list(Model model) { model.addAttribute("object", "DeviceType"); return "devicetype/table"; }
From source file:sp.senac.controller.VeiculoController.java
@RequestMapping("/listar") public ModelAndView listarVeiculos(Model model) { model.addAttribute("veiculos", veiculoService.listarVeiculos()); return new ModelAndView("veiculo", "command", new Veiculo()); }
From source file:com.consol.citrus.samples.todolist.web.TodoListController.java
@RequestMapping(method = RequestMethod.GET) public String listHtml(Model model) { model.addAttribute("todos", todoListService.getAllEntries()); return "todo"; }
From source file:com.jdonee.insight.web.account.UserAdminController.java
@RequestMapping(value = "update/{id}", method = RequestMethod.GET) public String updateForm(@PathVariable("id") Long id, Model model) { model.addAttribute("user", accountService.getById(id)); return "account/adminUserForm"; }
From source file:com.test.storefront.BackendConsoleController.java
@RequestMapping(value = { "/", "/console" }, method = RequestMethod.GET) public String home(final Model model, final HttpServletRequest request) { model.addAttribute("restBaseUrl", restBaseUrl); return "index"; }
From source file:eu.gyza.eap.eapsocialontology.twitter.TwitterMessageController.java
@RequestMapping(value = "/twitter/messages", method = RequestMethod.GET) public String inbox(Model model) { model.addAttribute("directMessages", twitter.directMessageOperations().getDirectMessagesReceived()); model.addAttribute("dmListType", "Received"); model.addAttribute("messageForm", new MessageForm()); return "twitter/messages"; }
From source file:jpa_bayan.PersonController.java
@RequestMapping("/edit/{id}") public String editPerson(@PathVariable("id") int id, Model model) { model.addAttribute("person", this.personDao.getPersonById(id)); model.addAttribute("listPersons", this.personDao.listPersons()); return "person"; }
From source file:org.kuali.mobility.askiu.controllers.AskIUController.java
@RequestMapping(method = RequestMethod.GET) public String getList(Model uiModel) { uiModel.addAttribute("askiu", new AskIU()); return "askiu/form"; }
From source file:org.wallride.web.controller.admin.page.PageTreeController.java
@RequestMapping(params = "part=page-create-form") public String partPageCreateDialog(@PathVariable String language, @RequestParam(required = false) Long parentId, Model model) { model.addAttribute("parentId", parentId); model.addAttribute("pageNodes", pageUtils.getNodes(true)); return "page/tree::page-create-form"; }
From source file:streaming.controller.HomePageController.java
@RequestMapping(value = "ajouter", method = RequestMethod.GET) public String ajouter(Model model) { model.addAttribute("monEffaceMoi", new Effacemoi()); return "effacemoi_ajouter"; }