Try wrapping your nested table inside of a detailStamp facet instead of a
column
<tr:table value="#{fichaOperadorBean.attributes}" var="attribute">
<tr:column>
<tr:outputText value="#{attribute.xnomatrb }"/>
</tr:column>
<f:facet name="detailStamp">
<tr:table value="#{attribute.attributeData }"
var="attributeData">
<tr:column>
<tr:outputText value="#{attributeData.xvalor}" />
</tr:column>
</tr:table>
</f:facet>
</tr:table>
Here is a demo
http://www.irian.at/trinidad-demo/faces/components/table_nested.jspx
Here is the source
http://www.irian.at/trinidad-demo/faces/components/table_nested.jspx.source
On 5/4/07, Francisco Passos <[EMAIL PROTECTED]> wrote:
Hello there.
I'm attempting to use a tr:table within another one and the second one
doesn't show. I'm trying to present a list of values, where each value may
have a list of different values. So I was aiming for something like
Column 1 | Column 2
---------|-----------
Value 1 | SubValue 1
| SubValue 2
---------|-----------
Value 2 | SubValue 3
| SubValue 4
| SubValue 5
This does not work:
<tr:table value="#{fichaOperadorBean.attributes}" var="attribute">
<tr:column>
<tr:outputText value="#{attribute.xnomatrb }"/>
</tr:column>
<tr:column rendered="#{attribute.xtipdado eq 'S' or
attribute.xtipdado eq 'L'}">
<tr:table value="#{attribute.attributeData }"
var="attributeData">
<tr:column>
<tr:outputText value="#{attributeData.xvalor}" />
</tr:column>
</tr:table>
</tr:column>
</tr:table>
Whereas this does indeed work (the same, but using h:dataTable instead of
tr:table):
<h:dataTable value="#{fichaOperadorBean.attributes }" var="attribute">
<h:column>
<tr:outputText value="#{attribute.xnomatrb}"/>
</h:column>
<h:column rendered="#{attribute.xtipdado eq 'S' or
attribute.xtipdado eq 'L'}">
<h:dataTable value="#{attribute.attributeData}"
var="attributeData">
<h:column>
<tr:outputText value="#{ attributeData.xvalor}" />
</h:column>
</h:dataTable>
</h:column>
</h:dataTable>
Is there another intended way to use tr:table for this to work?