Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-236

PageableArgumentResolver should resolve Sort parameter

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6 M1
    • Component/s: Core
    • Labels:
      None

      Description

      PageableArgumentResolver extracts pagination from request and resolves Pageable parameter.

      But it doesn't resolve Sort argument and so it's not possible to create this controller :

      @Controller
      @RequestMapping("/users")
      public class UserController {
      
        @RequestMapping
        public String showUsers(Model model, Sort sort) {
      
          model.addAttribute("users", userDao.readAll(sort));
          return "users";
        }
      }
      

      I join a new PageableArgumentResolver that resolves Sort argument.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                olivergierke Oliver Drotbohm
                Reporter:
                lafeuil Thomas Champagne
                Last updater:
                Oliver Drotbohm
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: