The following description was given in the dev-list thread (see "Forum Reference):
So what about injecting pagination info via CDI?
This means that we'll need to use instance variables on the Controller class, and decorate it during instantiation. The paging support could be enabled by using an annotation on the controller method (@Paginated), and the CDI extension would take care of wrapping the response/putting the headers accordingly.
The response would be decorated with the appropriate links.
|