You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Fabian Loewner <fa...@freiheit.com> on 2008/12/02 11:17:09 UTC

[Tomahawk] Problem with nested detailStamps

Hi,

i have a table with a detailStamp. Inside the detailStamp is another
table with a detailStamp. If I click on the details link in the outer
table, the detailStamp opens as expected. But if I click on the details
link in the inner table, the inner detailStamp is not opened.
Can somebody help me to find the problem?

The Markup looks like this:

<t:dataTable
    id="outer_table"
    var="product"
    value="#{someController.someValue}"
    varDetailToggler="detailToggler1">

    <td jsfc="h:column">
        <t:commandLink
           action="#{detailToggler1.toggleDetail}"
           value="details" />
    </td>
    <f:facet name="detailStamp">
        <t:dataTable
            id="inner_table"
            varDetailToggler="detailToggler2"
            value="#{product.someOtherValue}">

            <td jsfc="h:column">
                <t:commandLink
                   action="#{detailToggler2.toggleDetail}"
                   value="details"/>
            </td>

            <f:facet name="detailStamp">
                 <span> the inner details go in here </span>
            </f:facet>
        </t:dataTable>
    </f:facet>
</t:dataTable>

Thanks in advance
Fabian

-- 
Fabian Loewner
Dipl.-Inf.

freiheit.com technologies gmbh
Straßenbahnring 22 / 20251 Hamburg, Germany
fon   +49 (0)40 / 890584-0
fax   +49 (0)40 / 890584-20
HRB Hamburg 70814

421E B10E 8431 572D 9362  A2CE 87B7 E346 C83A 8773
Geschäftsführer: Claudia Dietze, Stefan Richter, Jörg Kirchhof

Re: [Tomahawk] Problem with nested detailStamps

Posted by Fabian Loewner <fa...@freiheit.com>.
Hi,

I found the cause of my problems. It was a bug in the jsf-facelets
library. Switching to a newer version helped.

Regards
Fabian


Fabian Loewner schrieb:
> Hi,
> 
> i have a table with a detailStamp. Inside the detailStamp is another
> table with a detailStamp. If I click on the details link in the outer
> table, the detailStamp opens as expected. But if I click on the details
> link in the inner table, the inner detailStamp is not opened.
> Can somebody help me to find the problem?
> 
> The Markup looks like this:
> 
> <t:dataTable
>     id="outer_table"
>     var="product"
>     value="#{someController.someValue}"
>     varDetailToggler="detailToggler1">
> 
>     <td jsfc="h:column">
>         <t:commandLink
>            action="#{detailToggler1.toggleDetail}"
>            value="details" />
>     </td>
>     <f:facet name="detailStamp">
>         <t:dataTable
>             id="inner_table"
>             varDetailToggler="detailToggler2"
>             value="#{product.someOtherValue}">
> 
>             <td jsfc="h:column">
>                 <t:commandLink
>                    action="#{detailToggler2.toggleDetail}"
>                    value="details"/>
>             </td>
> 
>             <f:facet name="detailStamp">
>                  <span> the inner details go in here </span>
>             </f:facet>
>         </t:dataTable>
>     </f:facet>
> </t:dataTable>
> 
> Thanks in advance
> Fabian