• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

STRUTS2 with EXTJS4 --> Pagination Issue

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

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 attached the screenshot :-

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

Regards,
Ram
pagination.png
[Thumbnail for pagination.png]
EXTJS grid image
 
reply
    Bookmark Topic Watch Topic
  • New Topic