Hi all
Can anyone please tell me whether it is possible to nest
JSF datatables. What I have is a collection of objects containing another collection in a parent/child relationship. When I try to nest the tables however I get either no table or an exception. The code is tried is as follows:
<h:dataTable id="consumerTable" value="#{StatisticsBean.consumerList}" var="consumerItem">
<h:dataTable id="importTable" value="#{consumerItem.dataImports}" var="importItem">
<h:column>
<f:facet name="header">
<h:outputText value="System name"/>
</f:facet>
<h:outputText value="#{consumerItem.consumerName}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="File ID"/>
</f:facet>
<h:outputText value="#{importItem.fileID}"/>
</h:column>
</h:dataTable>
</h:dataTable>
Any help would be appreciated.
Regards,
Alfred Thomas