I'm using Richfaces 4.0.0.20110209-M6 on Glassfish with jsf-api and jsf-impl 2.0.3-b03. running on windows XP.
I have the need to have a column span multiple rows in a data table; however, I also need to have a selectionchange listener on this table. So, this would mean that I would need to use an extendedDataTable. The problem I am having is that the extended datatable will not render correctly for me.
The following xhtml is used to render a simple datatable correctly:
<rich:dataTable value="#{dataTableController.data}" var="datum">
<f:facet name="header">
<rich:columnGroup>
<rich:column ><h:outputText value="Group" id="groupHeader"/></rich:column>
<rich:column ><h:outputText value="Item" id="itemHeader"/></rich:column>
</rich:columnGroup>
</f:facet>
<rich:column rowspan="#{2}" rendered="#{datum.renderGroup}">
<h:outputText value="#{datum.group}" />
</rich:column>
<rich:column rowspan="#{1}" >
<h:outputText value="#{datum.item}" />
</rich:column>
</rich:dataTable>
This renders the following:
extendedDataTable does not suppots row/col spanning. And such support questionable even for future as conflicts with scrolling(especially ajax) feature. So you could wait for DT selection feature appears or impllement it in your own JS.