I have a UI with a Grid<Item>
(with sorting, filtering, paging) to a Spring service backed by JPA. Must be a pretty common thing.
Item
fields: a
, b
, c
(there are a lot more fields in reality, but for the purpose of the example I'll keep it short)
If someone wants to filter for a=valueA
and c=valueC
items, I would like the URL for example to be something like this:
/items?a=valueA&c=valueC&orderBy=b&page=2&pageSize=50
I found this very similar question, but I can not figure out how to facilitate the binding of the URL parameters to the @ModelAttribute
. Can someone explain?