How to do "google like" paging in Wicket? You only show links to 10 first search result pages, then when I click page 10, additional 10 more pages are added to search results etc.
I have a typical search form and list of search results. There are possibly many search result pages.
Typically only the first few search result pages are interesting and but it must be possible to also see all search results.
I'd like to do something like this:
- Initially first 10 search result pages are queried
- If user clicks page 10, additional 10 search result pages are queried.
- If user clicks page 20, additional 10 search result pages are again queried.
I do not want to fetch all search results in one go, and I do not want to fetch number of all search results. I just want to fetch next 10 search result pages.
I currently use PageableListView and PagingNavigator to do paging.