I'm building an application using Struts 2 + Spring 3 + Hibernate 3. I was wondering if any of you knows of any alternative to the "displaytag" library to draw and manage tables.
Not that I dislike it so much, but I read this ment and made me wonder about other options. And I see it has not been updated in a while and I was wondering if there is some reason for that (like a better/more popular alternative available).
I'm building an application using Struts 2 + Spring 3 + Hibernate 3. I was wondering if any of you knows of any alternative to the "displaytag" library to draw and manage tables.
Not that I dislike it so much, but I read this ment and made me wonder about other options. And I see it has not been updated in a while and I was wondering if there is some reason for that (like a better/more popular alternative available).
Share Improve this question edited May 23, 2017 at 12:18 CommunityBot 11 silver badge asked Jan 22, 2011 at 21:45 Pere VillegaPere Villega 16.4k5 gold badges65 silver badges100 bronze badges6 Answers
Reset to default 3Try Datatables,a jquery plugin.It has endless features and the best thing is that you dont have to change basic html format of tables to implement it, just pass the id of your table. I was also frustrated by the limitations and requirements of display tag
I'm moving to a jQuery datagrid, returning the data with S2 json-plugin. The data gets to my action from a service object that then access the entity objects.
Paging is currently in the service objects using the criteria api, backed by hibernate 3. Still a work in progress but it is working.
Instead of loading all the data into memory and have DisplayTag to perform pagination through javascript magic, you can configure DisplayTag's pagination to load the right chunk of data only when it is requested. This way, you are not going to have performance loss since you are not loading all the data into memory.
I can't remember the code on top of my head (I'm away from my work machine), but here's an example which may be useful to you: http://i-work-i-blog.blogspot./2007/06/display-tag-and-external-pagination.html
By pure chance I've found something similar JMesa
one alternative is the grid tag from struts2 jquery plugin. take a look at the showcase and the special grid showcase.
I think, you should interest the PrimeFaces library, especially, a datatable ponent. It works with Spring Framework.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743634010a4481843.html
评论列表(0条)