I can't pass parameters by post with makeeditable

I can't pass parameters by post with makeeditable

galorngalorn Posts: 1Questions: 0Answers: 0
edited July 2012 in General
I'm trying to edit cells, but I can not get get the parameters "id", "value", "columnName", "rowid", "columnPosition" and "columnid" in the servlet.
I check that accesses the servlet, but when trying to collect the attributes, such as "String id = request.getParameter (" id ")," I get no result.
In firebug I only see the "source" with all the content in string, but I can not see each parameter separately.

javascript code:
$(document).ready(function () {

$.ajaxSetup({ scriptCharset: "utf-8" , contentType: "application/json; charset=utf-8", cache: false });

var anOpen = [];
var sImageUrl = "http://localhost:8084/duplicados/resources/js/";

oTable = $('#example').dataTable( {
"bProcessing": true,
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"sAjaxSource": "http://localhost:8084/duplicados/CargarLista",
"aoColumns": [

{
"mDataProp": null,
"sClass": "control center",
"sDefaultContent": ''
},

{ "mDataProp": "HOT_CODCOBOL" },
{ "mDataProp": "HOT_NOMBRE" },
{ "mDataProp": "POBNOM" },
{ "mDataProp": "NOMPROV" },
{ "mDataProp": "AFILIACION" },
{ "mDataProp": "PROVEEDOR" },
{ "mDataProp": "PRIORIDAD" }
]
} ).makeEditable({
sUpdateURL: "http://localhost:8084/duplicados/UpdateData",
"aoColumns": [
null,
null,
null,
null,
null,
null,
null,
{

}
]
});


$('#example td.control').live( 'click', function () {
var nTr = this.parentNode;
var i = $.inArray( nTr, anOpen );

if ( i === -1 ) {
$('img', this).attr( 'src', sImageUrl+"details_close.png" );
oTable.fnOpen( nTr, fnFormatDetails(oTable, nTr), 'details' );
anOpen.push( nTr );
}
else {
$('img', this).attr( 'src', sImageUrl+"details_open.png" );
oTable.fnClose( nTr );
anOpen.splice( i, 1 );
}
} );

});


function fnFormatDetails( oTable, nTr )
{
var oData = oTable.fnGetData( nTr );
var sOut =
''+
''+
'DIRECCION:'+oData.DIRECCION+''+
'CODIGO POSTAL:'+oData.CODIGOPOSTAL+''+
'FAX:'+oData.FAX+''+
'PAIS:'+oData.PAIS+''+
'TELEFONO:'+oData.TELEFONO+''+
'DESCRIPCION:'+oData.DESCRIPCION+''+
''+
'';
return sOut;
}


java code:
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
System.out.println("entra DOPOST ");



String id = request.getParameter("id");
String value = request.getParameter("value");
String columnName = request.getParameter("columnName");
String columnId = request.getParameter("columnId");
String columnPosition = request.getParameter("columnPosition");


//response.getWriter().print("Error - no funciona");

}


html code:







COBOL
NOMBRE
POBLACION
PROV.
AFILIACION
PROVEEDOR
PRIORIDAD









Thank you very much for helping me! And sorry for my english :)
This discussion has been closed.