Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 83613 invoked from network); 7 May 2007 15:50:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2007 15:50:26 -0000 Received: (qmail 55200 invoked by uid 500); 7 May 2007 15:50:27 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 55175 invoked by uid 500); 7 May 2007 15:50:27 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 55164 invoked by uid 99); 7 May 2007 15:50:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 08:50:27 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of francisco.passos@gmail.com designates 209.85.132.240 as permitted sender) Received: from [209.85.132.240] (HELO an-out-0708.google.com) (209.85.132.240) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 08:50:19 -0700 Received: by an-out-0708.google.com with SMTP id c17so154332anc for ; Mon, 07 May 2007 08:49:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Lsx9fFoQY44jp6h/BsOh88V+KxHhZaJ8u/QI4UYT3u8YDsEzNRXfRxA3MQzah6RZfOXFy33+VIXvtBxaUcWYrebE3l6+0ZRXDALkx/riOX2bnJXgE4EB+HTAOps9JE6+EiT+ocUKcEBZ8GwreGoBg15BYu3I9PD9xpaFu/mXRb0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=P3V5SSoF83Z3V0i1dAuWzq15LpA0XY/VTbk1q65QQrtU+G9WGV0WuRl3RKzENVrnjAOpALTFYVPWFqmCXSPlwbw5oWiM4jrj9IqV8JKrLucgDDl5wCEUgnsqBh5FBBDnyiT1ir+MvxtW2wH13t1mgCuTaFDUmqBMM6r4ApXhVKc= Received: by 10.100.119.14 with SMTP id r14mr4921443anc.1178552997114; Mon, 07 May 2007 08:49:57 -0700 (PDT) Received: by 10.100.137.4 with HTTP; Mon, 7 May 2007 08:49:57 -0700 (PDT) Message-ID: Date: Mon, 7 May 2007 16:49:57 +0100 From: "Francisco Passos" To: "MyFaces Discussion" Subject: Re: [Trinidad] tr:table within tr:table In-Reply-To: <6dac79b90705051704r50193149o86889b12c93fcccb@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_117076_11338426.1178552997024" References: <6dac79b90705051704r50193149o86889b12c93fcccb@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_117076_11338426.1178552997024 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I suppose it should indeed work inside of a column, but it isn't. I've tried with a detailStamp like this: and I got an error: 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 wrote: > > Hrm. It is supposed to work inside of a column as well > as a detailStamp... > > -- Adam > > > On 5/4/07, Brian Smith wrote: > > Try wrapping your nested table inside of a detailStamp facet instead of > a > > column > > > > > > > > > > > > > > > var="attributeData"> > > > > > > > > > > > > > > > > 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 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: > > > > > > > > > > > > > > > > > > > > > > var="attributeData"> > > > > > > > > > > > > > > > > > > > > > > > > > > > Whereas this does indeed work (the same, but using h:dataTable instead > of > > tr:table): > > > > > > var="attribute"> > > > > > > > > > > > > > > > > var="attributeData"> > > > > > > > > > > > > > > > > > > > > > > > > Is there another intended way to use tr:table for this to work? > > > > > > > > > > > ------=_Part_117076_11338426.1178552997024 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 <awiner@gmail.com> wrote:
Hrm.  It is supposed to work inside of a column as well
as a detailStamp...

-- Adam


On 5/4/07, Brian Smith <unobriani@gmail.com> 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 <francisco.passos@gmail.com> 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?
> >
> >
>
>

------=_Part_117076_11338426.1178552997024--