column with data= null
jzlima opened this issue · 4 comments
when i create a column with null data like below example to detail row an error was showed:
org.springframework.beans.InvalidPropertyException: Invalid property 'columns[0][data]' of bean class [org.springframework.data.jpa.datatables.mapping.DataTablesInput]: Property referenced in indexed property path 'columns[0][data]' is neither an array nor a List nor a Map; returned value was [ColumnParameter [data=null, name=null, searchable=null, orderable=null, search=null]]
site datatables with expample null column : datatables.net example row detail
...
"processing": true,
'serverSide': true,
"columns": [
{"data": null,
"className": 'details-control',
"orderable": false,
"defaultContent": ''
},
....
]
Hi! Did you follow the instructions here?
According to the exception, it seems there is a mapping issue (which may not be related to the null
data).
Can you please look into this issue on StackOverFlow?
You need to include 'jquery.spring-friendly.js'.