I have created a table for displaying books be signed out/in of an department. There are sorted on: Name, Date. Every so often (after some check-ins and check outs are made) the books are inventoried to confirm how many are available (and numbers are corrected according).
I currently have a table that displays all of the books sorted by Name, Date. But since there are a lot of rows I was hoping to have collapsible section based on when this type of book was inventoried.
Desired:
Name | Date | Count | Action
-----------------------------
- First Foo Section -
Foo SomeD +3 check-in
Foo SomeD -1 check-out
Foo SomeD 5 inventoried
+ Another Foo Section
+ Bar Section
Current Code:
<c:forEach var='item' items='${bookLogs}'>
<tr>
<td>${f:replaceNewLineWithBR(f:escapeHtml(item.name))}</td>
<td><c:out value='${item.date.formattedValue}'/></td>
<td>${f:replaceNewLineWithBR(f:escapeHtml(item.count))}</td>
<td>${f:replaceNewLineWithBR(f:escapeHtml(item.actionType))}</td>
</tr>
</c:forEach>
Should I do a test on item.actionType? Or should I pass bookLogs as a list of lists for the different collapsing sections in the table?