Is it possible to update a component that is within a component that has already been update with an AjaxDirectLink?

To hopefully clarify, I have a "Foo" component with an AjaxDirectLink that updates an @Any component that contains a "Bar" component. Bar has an AjaxDirectLink that updates an @Any component contained in Bar. Here is the simplified templates for the two components:

<!-- Foo Component Template -->
<div jwcid="[EMAIL PROTECTED]">
  <span jwcid="@RenderBlock" block="ognl:block">Render Block</span>
</div>
<a jwcid="@tacos:AjaxDirectLink" listener="listener:onChangeContents" parameters="ognl:{'redBlock'}" updateComponents="ognl:{'container'}">Red</a> <a jwcid="@tacos:AjaxDirectLink" listener="listener:onChangeContents" parameters="ognl:{'greenBlock'}" updateComponents="ognl:{'container'}">Green</a>

<div jwcid="[EMAIL PROTECTED]">
  <span jwcid="@Bar"/>
</div>

<div jwcid="[EMAIL PROTECTED]">
  <span jwcid="@Bar"/>
</div>


<!-- Bar Component Template -->
<div jwcid="[EMAIL PROTECTED]">
  <span jwcid="@RenderBlock" block="ognl:block">Render Block</span>
</div>
<a jwcid="@tacos:AjaxDirectLink" listener="listener:onChangeContents" parameters="ognl:{'dogBlock'}" updateComponents="ognl:{'content'}">Dog</a> <a jwcid="@tacos:AjaxDirectLink" listener="listener:onChangeContents" parameters="ognl:{'catBlock'}" updateComponents="ognl:{'content'}">Cat</a>

<div jwcid="[EMAIL PROTECTED]">
  Dog
</div>

<div jwcid="[EMAIL PROTECTED]">
  Cat
</div>

What I am running into is that clicking the AjaxDirectLink in Foo behaves as expected, but clicking the AjaxDirectLink in Bar does not update the [EMAIL PROTECTED] component after [EMAIL PROTECTED] has been reloaded from Foo.

To replicate the behavior I am experiencing:
1) Click "Cat" and the catBlock is displayed (Correct)
2) Click "Green" and the greenBlock is displayed (Correct)
3) Click "Cat" after clicking "Green" and the catBlock is not displayed (Incorrect behavior)

I have been banging my head against a wall trying to find an answer/solution to this and all I have to show for it is a headache and a slightly damaged wall. It seems like a common situation, so maybe I have been searching for the wrong keywords?

Thanks in advance for any help.


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

Reply via email to