Problem with passing a parameter from dataTable to java controller (user defined parameter)

Problem with passing a parameter from dataTable to java controller (user defined parameter)

sunmit9sunmit9 Posts: 19Questions: 1Answers: 0
edited May 2012 in General
Hi Allan, thank you so much for data tables. Its of great use.
I am looking to create a custom header using sDom as:

[code]var oTable = $('#myTable').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "query/getQuery",
"bPaginate" : true,
"bLengthChange": true,
"bScrollCollapse" : true,
"iDisplayLength" : 20,
"bFilter" : true,
"bJQueryUI" : true,
"sPaginationType" : "full_numbers",
"sSearch": "Search",
"sDom": '<"H"<"projectTeamTools">lrft>'
});[/code]

and i have created the div on my jsp as:

[code]$("div.projectTeamTools").html('Organize by Project Teams: ${projectTeam.projectName}');[/code]

i want to pass the selected value in the drop-down by calling a function 'onTeamSelect':

[code]function onTeamSelect(teamId){
alert(teamId +" Selected");
// i want to send this teamId to the Java controller, getQuery which populates my Data Table here
}[/code]

Is it possible to send the value of teamId to the getQuery method of my Java controller?

Also, when i create the sDom, i am unable to see the 'paginate' tool at the bottom of my data table. How to solve this issue?
Please help!

Replies

  • sunmit9sunmit9 Posts: 19Questions: 1Answers: 0
    edited May 2012
    is there anyone to help me on this???
This discussion has been closed.