Hi,
ok this goes only wrong when the last should get bigger i guess?
Because if it gets lower then the setCurrentPage will handle that if i am not mistaken But you are right last should recalculated when pressed but gettting the page count then.

Can you open a bug report?

   Done, request id is  1209753.

       Ari S.


Ari Suutari wrote:

Hi,

I'm using a PageableListView to display results of database query.
There seems to be a problem with navigators 'last' link when
amount of data in the vector being displayed changes.

In my case, the listview's model is empty when it is created.
It is filled when user pressed 'find' button.

The PageableListViewNavigator has following code snipped in constructor:

add(new PageableListViewNavigationLink("last", pageableListView, pageableListView
   .getPageCount() - 1));

As far as I understand, the last page number is calculated here and the
'last' link tries to move to that page. But this calculation should be redone
when model changes (or is my code missing something ?)


   Ari S.



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to