List of usage examples for org.springframework.ui ModelMap addAttribute
public ModelMap addAttribute(String attributeName, @Nullable Object attributeValue)
From source file:org.openmrs.module.test3.web.controller.Test3ManageController.java
@RequestMapping(value = "/module/test3/manage", method = RequestMethod.GET) public void manage(ModelMap model) { model.addAttribute("user", Context.getAuthenticatedUser()); }
From source file:org.openmrs.module.themes.web.controller.ThemingManageController.java
@RequestMapping(value = "/module/themes/manage", method = RequestMethod.GET) public void manage(ModelMap model) { model.addAttribute("user", Context.getAuthenticatedUser()); }
From source file:org.openmrs.module.training.web.controller.ReportingFrameworkTrainingManageController.java
@RequestMapping(value = "/module/training/manage", method = RequestMethod.GET) public void manage(ModelMap model) { model.addAttribute("user", Context.getAuthenticatedUser()); }
From source file:org.openmrs.module.tutorials.web.controller.TutorialsandLearningModuleManageController.java
@RequestMapping(value = "/module/tutorials/manage", method = RequestMethod.GET) public void manage(ModelMap model) { model.addAttribute("user", Context.getAuthenticatedUser()); }
From source file:org.openmrs.module.unimvngit.web.controller.MavenandGitModuleExampleManageController.java
@RequestMapping(value = "/module/unimvngit/manage", method = RequestMethod.GET) public void manage(ModelMap model) { model.addAttribute("user", Context.getAuthenticatedUser()); }
From source file:com.alibaba.jstorm.ui.utils.UIUtils.java
public static void addTitleAttribute(ModelMap model, String prefix) { String displayName;/*from w w w. j av a 2s. c o m*/ if (StringUtils.isBlank(prefix)) { displayName = UIDef.APP_NAME; } else { displayName = prefix + " - " + UIDef.APP_NAME; } model.addAttribute("title", displayName); model.addAttribute("PAGE_MAX", UIDef.PAGE_MAX); }
From source file:com.github.viktornar.controller.IndexController.java
@RequestMapping(method = RequestMethod.GET) public String getIndex(ModelMap model) { model.addAttribute("atlas", new Atlas()); return "index"; }
From source file:org.openmrs.module.cohortbuilder.web.controller.CohortBuilderManageController.java
@RequestMapping(value = "/module/" + CohortBuilderConstants.MODULE_ID + "/manage", method = RequestMethod.GET) public void manage(ModelMap model) { model.addAttribute("user", Context.getAuthenticatedUser()); }
From source file:org.openmrs.module.mysqletl.web.controller.DatawarehouseController.java
@RequestMapping(value = "/module/mysqletl/datawarehouse", method = RequestMethod.GET) public void manage(ModelMap model) { model.addAttribute("user", Context.getAuthenticatedUser()); }
From source file:org.openmrs.module.mysqletl.web.controller.ETLSchedulerController.java
@RequestMapping(value = "/module/mysqletl/scheduler", method = RequestMethod.GET) public void manage(ModelMap model) { model.addAttribute("user", Context.getAuthenticatedUser()); }