I have a little complicated table model. The header should look like this:
---------- --------------------- --------------------- ... --------------------- static | c1r1 | c2r1 |...| cNr1 | -------- ... -------- -------- ... -------- ... -------- ... -------- column | c1r2 |...| cMr2 |c(M+1)r2|...| etc |...| etc |...| etc | ---------- --------------------- --------------------- ... ---------------------
<f:facet name="header">
<rich:columnGroup>
<rich:column rowspan="2">
<h:outputText value="Head 2 rows" />
</rich:column>
<c:forEach items="#{bean.getHeadRow1()}" var="row1col">
<rich:column colspan="#{bean.getHeadRow2(row1col).size() + 1}">
<h:outputText value="#{row1col.name}" />
</rich:column>
</c:forEach>
// I need to manually break row here, but how??
<c:forEach items="#{bean.getHeadRow1()}" var="row1col">
<c:forEach items="#{bean.getHeadRow2(row1col)" var="row2col">
<rich:column>
<h:outputText value="#{row2col.name}" />
</rich:column>
</c:forEach>
</c:forEach>
</rich:columnGroup>
</f:facet>Try to use list for c:forEach without last element, and after put again rich:column with that element and breakBefore="true"
Please answer if it has succes.
it