I came up with a strange amalgamation of bed-mates which worked. It is an interesting approach to getting around various problems encountered developing tables.
An additional requirement was the ability to sort the data displayed in the table. Since our application at work does BI analytics, doing server side sorting is much slower and expensive than doing it client side. This problem was partially solved with JQuery and a plugin called TableSorter. I think it will work on most basic tables, and this one... well is no different.
Are you ready for some magic?
Data Table Design #3
Now that you have a chance to look at the XHTML file, I am sure you noticed some strange things like a mix of
<c:forEach/>wrapping a number of
<rich:column/>components inside a
<rich:dataTable/>. This is the normal configuration that you might see. Also, we have added a
<c:forEach/>for the items attribute. Since the
<c:forEach/>is expecting an array, or a Collection (List) to iterate over, we must provide it a customer in that format.
I thought about deleting the design, but it actually works and may help someone solve a problem so I am publishing it.
I will publish all of the other designs once they are cleaned up in project for download.