updating paginator with lazy model on row add/del

UI Components for JSF
Post Reply
tomik
Posts: 32
Joined: 21 Jan 2011, 06:50

29 Nov 2011, 03:05

Hi,

I'm using PF 3.0.M4. I have a lazy loaded datatable; when I add/remove a record I also update the rowCount of the model with e.g., lazydata.setRowCount(lazydata.getRowCount() + 1);

There are currently two issues:

1) Either remove/add record results in only one page number (the current) being displayed in the datatable footer. I can still use the page arrows to move to the previous page, in which case the rest of the page numbers appear then. How do I keep the number of page list active on add/remove actions?
2) When I delete the last record of a page, the open page is still the one from which the record was deleted; the page is empty as expected. I can again successfully navigate to the previous page with the rest of the records. How do I make the datatable to switch the previous page if the record on the active page is the last one when removing it?

Thank you!

T.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 44 guests