Code example for ModelAndView

Methods: addObject

0
        this.rolesPermissionServiceFacade=rolesPermissionServiceFacade;
    } 
 
    @RequestMapping(method = RequestMethod.GET)
     public ModelAndView handleRequestInternal() {
        ModelAndView modelAndView = new ModelAndView("manageRolesAndPermissions");
        modelAndView.addObject("roles",this.rolesPermissionServiceFacade.retrieveAllRoles());
        modelAndView.addObject("breadcrumbs", new AdminBreadcrumbBuilder().withLink("admin.manageRolesAndPermissions",
        "manageRolesAndPermissions.ftl").build()); 
        return modelAndView;
    } 
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java