STRUTS2 with EXTJS4 --> Pagination Issue
I am currently working on a project which uses extjs4.0.7 to display the data received from struts2 action class(through JSON) in a data grid. I was able to load the data in the extjs grid. But, the pagination logic in extjs isnt working as expected, as it cannot handle pagination with the remote data. I have posted the issue in extjs forums and they suggested that the pagination logic should be created on the server side(in action class) so that the extjs can handle the pagination using local pagination store.
The data from action class is forwarded to EXTJS grid using JSON and the grid gets displayed in the JSP page. Please find the screenshot below :-
The issue is, I need to display only 10 records in the first page of the grid and the next 10 records in the second page. However, all the 12 records are populated in the 1st page of the grid
Can anyone let me know if anyone have earlier worked on struts2 with extjs and achieved the paging logic ? If possible can i get a sample code or if any inputs out of expertise on how to put the logic would be very helpful to move forward.
Technologies :- EXTJS4.0.7, Struts2, hibernate3.5, spring2.5
Re: STRUTS2 with EXTJS4 --> Pagination Issue
Can someone please help me in resolving the issue ?