List of usage examples for org.springframework.ui ModelMap addAttribute
public ModelMap addAttribute(String attributeName, @Nullable Object attributeValue)
From source file:org.openmrs.module.openhmis.inventory.web.controller.InventoryCreatePageController.java
@RequestMapping(method = RequestMethod.GET) public void inventory(ModelMap model) throws IOException { model.addAttribute("modelBase", "openhmis.inventory.institution"); model.addAttribute("showStockTakeLink", Context.getAuthenticatedUser() != null && WellKnownOperationTypes.getAdjustment().userCanProcess(Context.getAuthenticatedUser())); model.addAttribute("isOperationNumberAutoGenerated", IdgenHelper.isOperationNumberGenerated()); }
From source file:org.openmrs.module.moduledistro.web.controller.ModuleDistroManagementController.java
@RequestMapping(value = "/module/moduledistro/manage", method = RequestMethod.GET) public void manage(ModelMap model) { model.addAttribute("user", Context.getAuthenticatedUser()); }
From source file:net.groupbuy.controller.admin.SeoController.java
/** * //from w w w. j a v a 2 s . c om */ @RequestMapping(value = "/edit", method = RequestMethod.GET) public String edit(Long id, ModelMap model) { model.addAttribute("seo", seoService.find(id)); return "/admin/seo/edit"; }
From source file:net.groupbuy.controller.admin.SeoController.java
/** * /*from w ww . j a va 2 s. co m*/ */ @RequestMapping(value = "/list", method = RequestMethod.GET) public String list(Pageable pageable, ModelMap model) { model.addAttribute("page", seoService.findPage(pageable)); return "/admin/seo/list"; }
From source file:com.miko.demo.mongo.controller.MainController.java
@RequestMapping(method = RequestMethod.GET) public String printWelcome(ModelMap model) { model.addAttribute("message", "Hello Spring 4 MongoDB Demo!"); return "hello"; }
From source file:com.miko.demo.neo4j.controller.MainController.java
@RequestMapping(method = RequestMethod.GET) public String printWelcome(ModelMap model) { model.addAttribute("message", "Hello Spring 4 Neo4J Demo!"); return "hello"; }
From source file:com.miko.demo.postgresql.controller.MainController.java
@RequestMapping(method = RequestMethod.GET) public String printWelcome(ModelMap model) { model.addAttribute("message", "Hello Spring 4 PostgreSQL Demo!"); return "hello"; }
From source file:cs544.blog.controller.UserController.java
@RequestMapping(value = "/registerUser", method = RequestMethod.GET) public String registerUser(ModelMap model) { model.addAttribute("user", new User()); return "registrationPage"; }
From source file:cs544.letmegiveexam.controller.UserController.java
@RequestMapping(value = "/register", method = RequestMethod.GET) public String register(ModelMap model) { model.addAttribute("user", new User()); return "register"; }
From source file:com.it355.petrababic.PetrinController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String printHello(ModelMap model) { model.addAttribute("poruka", "Petrin prvi domai"); loggingDao.login();//from ww w . j a v a 2s . c o m return "pocetna"; }