I am trying to implement a display table with pagination and sorting support which should be capable of rendering data without doing a full page refresh. For example, when I sort the table or use pagination.
How should I go about it ? Does DisplayTag library support AJAX ? If it does, how can I use it to achieve the desired results ?
Please help.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think every click in display tag, submits/refreshes the page. If you want to ajaxify your display tag, then
1) try putting entire table in some html container like DIV and modify links for pagination and sorting to point to some Javascript function which would then fire an ajax request.
2) You may automate the first step by using some ready-made ajax-tag library which would just refresh table created by display tag.
in this case DisplayTag would be an inner tag. In step 1, you may need to create your own tag similar to this.
I think this should resolve the problem. I had tried this, and it works fine...
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to implement a display table with pagination and sorting support which should be capable of rendering data without doing a full page refresh. For example, when I sort the table or use pagination.
How should I go about it ? Does DisplayTag library support AJAX ? If it does, how can I use it to achieve the desired results ?
Please help.
Thanks.
I think every click in display tag, submits/refreshes the page. If you want to ajaxify your display tag, then
1) try putting entire table in some html container like DIV and modify links for pagination and sorting to point to some Javascript function which would then fire an ajax request.
2) You may automate the first step by using some ready-made ajax-tag library which would just refresh table created by display tag.
in this case DisplayTag would be an inner tag. In step 1, you may need to create your own tag similar to this.
I think this should resolve the problem. I had tried this, and it works fine...
Thanks.