You need to sign in to do that
Don't have an account?

Some issues with pagination standard controller.
Hi folks, I implemented pagination on my visual force page looking at these two resources.
http://hisrinu.wordpress.com/2012/01/09/pagination-using-standardsetcontroller/
http://blog.jeffdouglas.com/2009/07/14/visualforce-page-with-pagination/
The next(), previous() etc methods do not work unless I make a call to the method which fetches records from the controller.
For example:
// returns the first page of records public void first() { //con = null; try{ con.first(); moneyTransactions = getMoneyTransactions(); } catch (Exception e) { ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, 'Code Error '+e)); } }
Also the next, previous etc links start freezing up after I click on them continuously for some time. Has anybody encountered these problems before since these methods are pretty standard wrt to the standard set controller.
What am I doing wrong?
Thanks, Calvin
my guess is since you are pressing continously the resposnse from the backend getting delayed and when u keep pressing the next and previous buttons request for the records may quee up and getting hang when the quee size crossed.
^^So is there a solution to prevent this from occuring.
I am using a List of objects to store the results. Should I be doing anything else?
The complete controller code.
Hi friends I will really appreciate any pointers here.
Thanks.