Hi,
I was wondering if nested Datatables ( one inside another, the inner one using the "var" tag of the outer one) work with seam. I have messages and each message has variable numbers of "information"-tags, and i want to display first the outer properties and then the "variable-length" inner properties like this:
<h:dataTable value="#{msgList}" var="con" rendered="#{msgList.rowCount>0}">
<h:column>
<f:facet name="header">Person</f:facet>
#{msg.owner.username}
</h:column>
<h:column>
<f:facet name="header">Details</f:facet>
<h:outputText value="No information found" rendered="#{con.information != null and con.information.rowCount==0}"/>
<h:dataTable value="#{con.information}" var="con2" rendered="#{con.information.rowCount>0}">
<h:column>
#{con2.information.displayName},#{con2.information.firstName},#{con2.information.lastName}
</h:column>
</h:dataTable>
</h:column>
<h:column>
<f:facet name="header">Action</f:facet>
<s:link value="View Details" action="#{msgSearch.select}"/>
</h:column>
</h:dataTable>
would that generally work? It doesn't seem like it, but maybe I am doing something wrong... Any links regarding this would be appreciated!!
Thanks...