Bom dia amigos
Possuo este seguinte Código:
<table border="1" style="width: 100%">
<tr>
<td width="140px">Veículos</td>
<td width="77px">Data</td>
<c:forEach var="lista" items="${chklst.veiculos}" end="${chklst.tamanho}">
<td width="140px"><c:out value="${lista.itemCkl.descricao}" /></td>
</c:forEach>
<td align="center">Vencimento em</td>
</tr>
<c:set var="placa" scope="page" value="" />
<c:forEach var="list" items="${chklst.veiculos}">
<c:if test="${list.placa != pageScope.placa}">
<c:set var="placa" value="${list.placa}" scope="page" />
<tr>
<td width="140px"><c:out value="${list.placa}" /></td>
<td width="77px"><c:out value="${list.dtCkl}" /></td>
<c:forEach var="item" items="${chklst.veiculos}" end="${chklst.tamanho}">
<td width="140px"><c:out value="${item.veiCkl.estado}" /></td>
</c:forEach>
<td></td>
</tr>
</c:if>
</c:forEach>
</table>
Se a lista retornar 1 registro, funciona corretamente, mas se possuir + de 1 registro. O 1º registro pega as informações do registro de baixo e assim por diante.
Como posso fazer algo parecido, que retorne os dados corretos com dataTable?
Alguém poderia ajudar, desde já agradeço.
Att.
Diego Silva