Listing a id of items in a table
which looks like:
<g:sortableColumn style="width: 20px" property="id" title="${message(code: 'packet.id.label', default: 'Id')}" />
<g:each in="${packetInstanceList}" status="i" var="packetInstance">
<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
<td><g:link controller="packet" action="show" id="${packetInstance.id}">${fieldValue(bean: packetInstance, field: "id")}
</g:link></td>
Shows me id of the items from domain packet.
I would like to turn them into a count,
which starts from 1, independent from id number.
Try: