From cf2f286066ea96c90170e96fb52f528003c9418f Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Thu, 22 Aug 2024 13:10:45 +0900 Subject: [PATCH] setCollectionInfo(..) -> setPagingInfo(..) --- src/main/java/cokr/xit/base/user/web/UserController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/cokr/xit/base/user/web/UserController.java b/src/main/java/cokr/xit/base/user/web/UserController.java index 85197ea..1caf0df 100644 --- a/src/main/java/cokr/xit/base/user/web/UserController.java +++ b/src/main/java/cokr/xit/base/user/web/UserController.java @@ -42,7 +42,9 @@ public class UserController extends AbstractController { public ModelAndView main() { ModelAndView mav = getUserList(new UserQuery().setPageNum(1)); mav.setViewName("base/user/user-main"); - return mav.addObject("userList", toJson(mav.getModel().get("userList"))); + return mav + .addObject("userList", toJson(mav.getModel().get("userList"))) + .addObject("userPaging", toJson(mav.getModel().get("userPaging"))); } /**사용자 목록을 조회하여 반환한다.
@@ -59,7 +61,7 @@ public class UserController extends AbstractController { @RequestMapping(name="사용자 조회", value="/list.do") public ModelAndView getUserList(UserQuery req) { List result = userService.getUserList(setFetchSize(req)); - return setCollectionInfo(new ModelAndView("jsonView"), result, "user"); + return setPagingInfo(new ModelAndView("jsonView"), result, "user"); } /**사용자 선택을 위한 화면을 연다.