I'm trying out this grid component called jQuery Bootgrid. In AJAX mode, it POST
s parameters to the server and the one related to sorting is sent like this:
sort[colname]=desc
The colname
part changes depending on how you sort the grid.
Is there any way in Spring MVC using @RequestParam
to capture that sort
param?
For example, something like:
@RequestParam("sort[{\\*}]") Map<String, String> sort
That's just a wild guess and I doubt there is any clean way to do it. Any suggestions on how to handle it would be great.
Update: Also tried this simpler version which I actually thought might work
@RequestParam("sort") Map<String, String> sort