philwebb/springfaces — Issue #40: First page data always fetched in Pagination with PrimeFaces
Author: tedliang
Created: 2011-10-14 00:15:23+00:00
State: open

When I play around with your traveladvisor example, I found out whenever click the page other than the first one, the service code (eg. hotelService.getReviews) is executed twice. The first one fetches the first page data. Another one fetches data for the page you clicked.

After dug into your source code, I added 'setRowIndex(first);' in line 115 of PrimeFacesPagedDataModel.java. It seems to fix the problem. Are you ignoring the parameter 'first' for the 'load' method on purpose?