Issue
I am trying to recreate the example DataTable found here Child Rows DataTables
DataTables is working fine, I am not getting the - "Requested unknown parameter '4' for row 0, column 4" ERROR. My problem is that the button is not rendering in the last column. Can somebody help me resolve this issue, Thanks!
Here is my java servlet logic..
And my Table -
<tr>
<th>Employee</th>
<th>Shift</th>
<th>Start Date</th>
<th>End Date</th>
<th>Details</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Employee</th>
<th>Shift</th>
<th>Start Date</th>
<th>End Date</th>
<th>Details</th>
</tr>
</tfoot>
Solution
In the render function, you need to return a string. So you only need to add a single quote before and after your button definition, like this '<button>Click Here!</button>';
Answered By - Sagnalrac
Answer Checked By - Timothy Miller (JavaFixing Admin)