You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Eman Nollase <em...@gmail.com> on 2009/07/04 18:35:59 UTC

How to target PagingNavigator

Hello,

It may sounds weird but i had to ask anyway, is there a way to target
PagingNavigator? I need this to update the list of page presented by the
navigator. the need came when every page of the queried from DP will be
updated.

here is the scenario:
1. i have queried 100 rec not updated and 10rec/page. So there is 10pages
displaying 10 records each.
2. when the first 10 record display, when it passes in the service layer it
will be updated. The number of count still the same. So in the DB now i have
10rec updated and 90 is not. (but in the display it shows 10 pages in
navigator).
3. i  pressed page 2 till 5.Now there is 50 updated and 50 not updated. but
still the navigator display 10 pages.
4. i clicked page 6 and return empty. My hunch is that it is looking for
limit from 51 - 60 which is really no value because the DB only contains 50
not updated records. same goes for 7th to 10th page.

What I'm missing step here? How do i update PagingNavigator listing of
pages? so that everytime i click the pages it will also be updated of the
current count in DB?

Thanks a lot.
Cheers.

- eman