diff --git a/src/docbkx/repositories.xml b/src/docbkx/repositories.xml
index c15e61c09..231893dcd 100644
--- a/src/docbkx/repositories.xml
+++ b/src/docbkx/repositories.xml
@@ -1459,8 +1459,8 @@ public class UserController {
The bottom line is that the controller should not have to handle
the functionality of extracting pagination information from the
request. So Spring Data ships with a
- PageableHandlerArgumentResolver that will do
- the work for you. The Spring MVC JavaConfig support exposes a
+ PageableHandlerMethodArgumentResolver that will
+ do the work for you. The Spring MVC JavaConfig support exposes a
WebMvcConfigurationSupport helper class to
customize the configuration as follows:
@@ -1468,8 +1468,8 @@ public class UserController {
public class WebConfig extends WebMvcConfigurationSupport {
@Override
- public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
- converters.add(new PageableHandlerArgumentResolver());
+ protected void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
+ argumentResolvers.add(new PageableHandlerMethodArgumentResolver());
}
}
@@ -1479,15 +1479,13 @@ public class WebConfig extends WebMvcConfigurationSupport {
<bean class="….web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
<property name="customArgumentResolvers">
<list>
- <bean class="org.springframework.data.web.PageableHandlerArgumentResolver" />
+ <bean class="org.springframework.data.web.PageableHandlerMethodArgumentResolver" />
</list>
</property>
</bean>
- When using Spring 3.0.x versions use the
- PageableArgumentResolver instead. Once you've
- configured the resolver with Spring MVC it allows you to simplify
- controllers down to something like this:
+ Once you've configured the resolver with Spring MVC it allows
+ you to simplify controllers down to something like this:
@Controller
@RequestMapping("/users")
@@ -1508,7 +1506,7 @@ public class UserController {
Request parameters evaluated by
- PageableArgumentResolver
+ PageableHandlerMethodArgumentResolver
@@ -1519,30 +1517,42 @@ public class UserController {
page
- Page you want to retrieve.
+ Page you want to retrieve, 0 indexed and defaults to
+ 0.
- page.size
+ size
- Size of the page you want to retrieve.
+ Size of the page you want to retrieve, defaults to
+ 20.
- page.sort
+ sort
- Property that should be sorted by.
-
-
-
- page.sort.dir
-
- Direction that should be used for sorting.
+ A collection of sort directives in the format
+ ($propertyname,)+[asc|desc]?.
+
+ Pagiination URL Parameter Examples
+
+ To retrieve the third page with a maximum page size of 100
+ with the data sorted by the email property in ascending order use
+ the following url parameter:
+
+ ?page=2&size=100&sort=email,asc
+
+ To sort the data by multiple properties in different sort
+ order use the following url parameter
+
+ ?sort=foo,asc&sort=bar,desc
+
+
In case you need multiple
Pageables to be resolved from the
request (for multiple tables, for example) you can use Spring's