-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
First of all, thank you for this project. It's been of great help to me. :)
I'm currently trying to modify my Pageable in the controller.
What I'm basically doing:
@RequestMapping(method = RequestMethod.GET)
public String showCourses(Model model, Pageable pageable, HttpServletRequest request) {
if (someCondition) {
pageable = savedPageable;
}
model.addAttribute(repository.findAll(pageable));
return "admin/courses/index";
}
I would like to have the page links in the rendered html to have the attributes of savedPageable.
So if savedPageable.getSize() == 10 the link to a page would also contain size=10.
What I already tried:
- setting the attributes from
savedPageableon theHttpServletRequest(in the controller or in a HandlerInterceptor#preHandler) - implementing and registering my own
PageableHandlerMethodArgumentResolver
From where and when does the dialect get it's attributes for the url generation?
Metadata
Metadata
Assignees
Labels
No labels