I suppose it should indeed work inside of a column, but it isn't.
I've tried with a detailStamp like this:
<tr:table value="#{fichaOperadorBean.attributes}" var="attribute" >
<tr:column>
<tr:outputText value="#{attribute.xnomatrb}"/>
</tr:column>
<f:facet name="detailStamp" 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>
</f:facet>
</tr:table>
and I got an error: <f:facet> Facet Tag can only have one child UIComponent
I don't understand, since the facet only has the tr:table. I also tried it
using a tr:panelGroup with the tr:table in it, but to no avail.
What can I do?
On 5/6/07, Adam Winer <[EMAIL PROTECTED]> wrote:
Hrm. It is supposed to work inside of a column as well
as a detailStamp...
-- Adam
On 5/4/07, Brian Smith <[EMAIL PROTECTED]> wrote:
> 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?
> >
> >
>
>