As per documentation of Datatables.net https://datatables.net/examples/advanced_init/length_menu.html i need to write some setting to data table implementation to my thmyeleaf template,
<script th:inline="javascript">
$(document).ready(function() {
$('#example').DataTable( {
"lengthMenu": [[10, 25, 50, [[${rowTotal}]]], [10, 25, 50, "All"]]
});
});
</script>
But on rendering,it's giving me such error.
org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: "10, 25, 50, -1], [10, 25, 50, 'All'" (template: "customer/customerlist" - line 237, col 21)
And on reading this documentation on thymeleaf,it is being said
When inlining, if the expression between [[...]] is not a valid Standard Expression, it is output without modification, including the double-brackets.
https://github.com/thymeleaf/thymeleaf/issues/22.
How to i solve this problem?