Hi,
I have a problem using nested dataTables. Following code does not work correctly:
<h:dataTable value="#{companies}" var="aCompany" rendered="#{companies.rowCount > 0 }" binding="#{contracts}"> <h:column> <f:facet name="header"> <h:outputText value="Unternehmen" /> </f:facet> <h:outputText value="#{aCompany.name}" /> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Bereiche" /> </f:facet> <h:dataTable value="#{aCompany.contracts}" var="aContract"> <h:column> <h:outputText value="#{aContract}" /> </h:column> </h:dataTable> </h:column> <h:column> <h:commandButton action="#{manager.bla}" value="Bearbeiten" /> </h:column> </h:dataTable>
@DataModel private ArrayList<CompanyEntity> companies; @DataModelSelection private CompanyEntity selectedCompany;
/user/showAllCompanies.xhtml @38,51 value="#{aContract.scope}": Bean: org.hibernate.collection.PersistentSet, property: scope