Example usage for org.springframework.ui Model addAttribute

List of usage examples for org.springframework.ui Model addAttribute

Introduction

In this page you can find the example usage for org.springframework.ui Model addAttribute.

Prototype

Model addAttribute(String attributeName, @Nullable Object attributeValue);

Source Link

Document

Add the supplied attribute under the supplied name.

Usage

From source file:com.zuoxiaolong.niubi.job.console.controller.MasterSlaveJobSummaryController.java

@RequestMapping(value = "")
public String list(Model model) {
    model.addAttribute("jobSummaries", masterSlaveJobSummaryService.getAllJobSummaries());
    return "master_slave_job_summary_list";
}

From source file:com.zuoxiaolong.niubi.job.console.controller.StandbyJobSummaryController.java

@RequestMapping(value = "")
public String list(Model model) {
    model.addAttribute("jobSummaries", standbyJobSummaryService.getAllJobSummaries());
    return "standby_job_summary_list";
}

From source file:cz.muni.fi.editor.webapp.controllers.NotificationController.java

@RequestMapping("/")
public String list(Model model) {
    model.addAttribute("notifications", notificationService.getNotifications(new NotificationRequest(0, true)));

    return "notification.list";
}

From source file:org.fenixedu.spaces.ui.MyOccupationRequestController.java

@RequestMapping(value = "/{occupationRequest}", method = RequestMethod.GET)
public String view(@PathVariable OccupationRequest occupationRequest, Model model) {
    model.addAttribute("occupationRequest", occupationRequest);
    return "occupations/requests/mysingle";
}

From source file:org.wallride.web.controller.admin.page.PageTreeController.java

@RequestMapping
public String index(@PathVariable String language, Model model) {
    model.addAttribute("pageNodes", pageUtils.getNodes(true));
    return "page/tree";
}

From source file:org.wallride.web.controller.admin.page.PageTreeController.java

@RequestMapping(params = "part=page-delete-form")
public String partPageDeleteDialog(@RequestParam long id, Model model) {
    model.addAttribute("targetId", id);
    return "page/tree::page-delete-form";
}

From source file:br.com.everson.clei.springmvc.controller.ClienteController.java

@RequestMapping("/inicio")
public String index(Model m) {
    m.addAttribute("clientesCadastrados", clientes);
    return "clientes/ListaDeClientesView";
}

From source file:com.epam.ipodromproject.controller.MakeABetControllec.java

@RequestMapping(value = "betting", method = RequestMethod.GET)
public String goToMakeABet(Model model) {
    model.addAttribute("types", BetType.values());
    return "makeABet";
}

From source file:com.qubit.solution.fenixedu.bennu.webservices.ui.WebservicesBaseController.java

protected void clearMessages(Model model) {
    model.addAttribute("infoMessages", new ArrayList<String>());
    model.addAttribute("warningMessages", new ArrayList<String>());
    model.addAttribute("errorMessages", new ArrayList<String>());
}

From source file:com.rambird.miles.web.UserController.java

@RequestMapping(value = "/users/signin", method = RequestMethod.GET)
public String initFindForm(Model model) {
    model.addAttribute("user", new User());
    return "users/signin";
}