I use Richfaces, Seam and JSF, and I need something like the following:

and I dealt with it to some extent using rich: subtable, for example:
<rich:dataTable value="#{backingBean.companyList}" rows="100" var="company"> <f:facet name="header"> <rich:columnGroup> <rich:column>Company Name</rich:column> <rich:column>Company Email</rich:column> <rich:column>Product Name</rich:column> <rich:column>Product Email</rich:column> </rich:columnGroup> </f:facet> <rich:subTable value="#{company.products}" var="product" rowKeyVar="rowKey"> <rich:column rowspan="#{company.products.size()}" rendered="#{rowKey eq 0}"> #{company.name} </rich:column> <rich:column rowspan="#{company.products.size()}" rendered="#{rowKey eq 0}"> #{company.email} </rich:column> <rich:column> #{product.name} </rich:column> <rich:column> #{product.email} </rich:column> </rich:subTable>
the problem is that companies that have NO products are not displayed at all. I want them to be rendered and the remaining row (product specific columns) to be empty.
Is there any way to do this?
Note. I also tried nested resources: datatables, but the inner columns do not overlap with the outer columns containing the header. With rich: subtable, the inner columns overlap with the outer columns and show nice.
UPDATE:
I created a Google Code project (a simple Maven project) that shows exactly what the problem is.
http://code.google.com/p/richfaces-rowspan/
java java-ee jsf datatable richfaces
Markos Fragkakis
source share