Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

refresh displaytag table using ajax

Hy guys,

I'm trying to solve this problem:

I have a jsp page with inside a table generated with dispaytag library and other kind of stuff.

When I press a button, I would like to generate an ajax call reloading just the table and not the whole jsp page, that display correctly the uptated table with also the generated tag pagebanner and pagelinks properly, increasing and decreasing elements founds.

Is there any solution to solve this problem?

like image 832
Giorgio Avatar asked Jul 15 '14 13:07

Giorgio


1 Answers

Try this.

$.ajax({
   type:"POST",
   url:"yourpage.jsp",
   data :{ yourdata : yourdata },
   success: function(data) {
   }    
});
$(".yourtableClass").load("yourpage.jsp .yourtableClass", { yourdata : yourdata });
like image 145
Arun Avatar answered Oct 15 '22 13:10

Arun