Hi,
when using json-plugin because use of struts instead of MVC then eithere data or pagination is not printed correctly.
At first the "DatatablesResponse.build" cannot be used because jsonplugin then creates a response like
{"datatablesResponse":
{
"data":[{...}],
"draw":1,
"recordsFiltered":500,
"recordsTotal":2591
}
}
and because of the prefix datatablesResponse no data is printed and pagination also is not working.
When creating a reponse by hand such that its like this:
{
"data":[{...}],
"draw":1,
"recordsFiltered":500,
"recordsTotal":2591
}
Then the data is shown but pagination does not work properly:
"Zeige 1 bis 500 von 500 Eintr�ge (filtered from 2,591 total entries)"
Due to this, paging only shows one single page.
When adding deferLoading:
<datatables:table id="users" url="/user_User_Json_List_Dandelion.action" serverSide="true" deferLoading="2500">
then its showing no data at all:
"No matching records found"
and
"Zeige 1 bis 500 von 2,500 Eintr�ge"
Is it a bug or a missing feature? Meas is server side processing only implemented for usage of MVC and does not support others like strus json-plugin?
Basically I'd expect to have a clear interface where the information comes from the json webserver and datatables then is rendering it.
Hi,
when using json-plugin because use of struts instead of MVC then eithere data or pagination is not printed correctly.
At first the "DatatablesResponse.build" cannot be used because jsonplugin then creates a response like
{"datatablesResponse":
{
"data":[{...}],
"draw":1,
"recordsFiltered":500,
"recordsTotal":2591
}
}
and because of the prefix datatablesResponse no data is printed and pagination also is not working.
When creating a reponse by hand such that its like this:
{
"data":[{...}],
"draw":1,
"recordsFiltered":500,
"recordsTotal":2591
}
Then the data is shown but pagination does not work properly:
"Zeige 1 bis 500 von 500 Eintr�ge (filtered from 2,591 total entries)"
Due to this, paging only shows one single page.
When adding deferLoading:
<datatables:table id="users" url="/user_User_Json_List_Dandelion.action" serverSide="true" deferLoading="2500">
then its showing no data at all:
"No matching records found"
and
"Zeige 1 bis 500 von 2,500 Eintr�ge"
Is it a bug or a missing feature? Meas is server side processing only implemented for usage of MVC and does not support others like strus json-plugin?
Basically I'd expect to have a clear interface where the information comes from the json webserver and datatables then is rendering it.