Paginate Multiple tables with the same table Id
Paginate Multiple tables with the same table Id
JSP:
I have a map of objects to be dispalyed using pagination in jsp
myOuterMap
while(myOuterMap.hasNext()){
Check
MsgID
while(myInnerMap.hasNext()){
// display all the myInnerMap objects attributes in a paginated table
//Assume 30 objects , dispaly 10 object details per page
//get the object
myObject.getXXX()
myObject.getXXX()
}
jQuery used:
----------
jQuery(document).ready(function() {
$('#OverviewId').dataTable( {
"sPaginationType" : "full_numbers",
"aoColumns": [null,null]
});
});
I am trying to create a paginated table with the data from Map.
when i followed above steps only the first table is getting displayed with pagination.( dataTable does all the features i needed with few lines code.Great Work. )
The subsequent tables created are not getting dispalyed with pagination.
I believe this is due to the table id i.e., OverviewId in this case being reused in the loop.
How can i solve this so that all tables created from myOuterMap object are paginated in addition to the first table.
I have a map of objects to be dispalyed using pagination in jsp
myOuterMap
while(myOuterMap.hasNext()){
Check
MsgID
while(myInnerMap.hasNext()){
// display all the myInnerMap objects attributes in a paginated table
//Assume 30 objects , dispaly 10 object details per page
//get the object
myObject.getXXX()
myObject.getXXX()
}
jQuery used:
----------
jQuery(document).ready(function() {
$('#OverviewId').dataTable( {
"sPaginationType" : "full_numbers",
"aoColumns": [null,null]
});
});
I am trying to create a paginated table with the data from Map.
when i followed above steps only the first table is getting displayed with pagination.( dataTable does all the features i needed with few lines code.Great Work. )
The subsequent tables created are not getting dispalyed with pagination.
I believe this is due to the table id i.e., OverviewId in this case being reused in the loop.
How can i solve this so that all tables created from myOuterMap object are paginated in addition to the first table.
This discussion has been closed.