Hi

I am using tapestry 4 and the latest release of tacos. I am trying to update a component inside a PartialFor but adding the component to the updateComponents list. It is not working at the moment and I have had to apply a workaround which is not ideal. Here is what I am trying to do

<span jwcid="wrapper" id="wrapper">

        <span jwcid="firstPartialFor">

                <div jwcid="@Any" id="ognl:anItem.uniqueId">

                        <span jwcid="toggleItem">toggle</span>

                        <span jwcid="@If" condition="ognl:anItem.isSelected">

                                <span jwcid="secondPartialFor">
                                        <div jwcid="@Any" 
id="ognl:anotherItem.uniqueId">
                                </span>
                        </span>
                </div>

        </span>

</span>


<property name="selectedItems" persist="session" initial-value="ognl:new java.util.HashSet()"/>

<component id="toggleItem" type="tacos:AjaxDirectLink">
        <binding name="listener" value="listener:toggleItem"/>
        <binding name="parameters" value="anItem"/>
        <binding name="updateComponents" value="ognl:{anItem.uniqueId}"/>
</component>


So on clicking the toggleItem link I expect to update the selectedItems hash and then rerender that block containing that link that was clicked so the item is now selected and the second partialFor is rendered. This does not work. What does work though is if I add the "wrapper" to the updateComponents list but then then all the items are refreshed.

Does anyone know what I am doing wrong here?

_________________________________________________________________
The new MSN Search Toolbar now includes Desktop search! http://join.msn.com/toolbar/overview


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to