You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by membersound <me...@web.de> on 2012/11/25 00:34:02 UTC

Include the same t:block multiple times?

Hi,

I have a t:block element which I want to be displayed 2 times. Inside is a
zone that if updated should update in BOTH locations.
<t:block t:id="myblock"><t:zone .. /> </t:block>

<t:delegate to="block:myblock" />
<t:delegate to="block:myblock" />

Problem is: whenever I update the zone, only the first delegate gets
updated. The second stays on the old value.

Can't I use a block multiple times? How can I do this?



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Include-the-same-t-block-multiple-times-tp5718254.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Include the same t:block multiple times?

Posted by Muhammad Gelbana <m....@gmail.com>.
I suppose you need to use "AjaxResponseRenderer"
http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/multiplezoneupdate

On Sun, Nov 25, 2012 at 1:34 AM, membersound <me...@web.de> wrote:

> Hi,
>
> I have a t:block element which I want to be displayed 2 times. Inside is a
> zone that if updated should update in BOTH locations.
> <t:block t:id="myblock"><t:zone .. /> </t:block>
>
> <t:delegate to="block:myblock" />
> <t:delegate to="block:myblock" />
>
> Problem is: whenever I update the zone, only the first delegate gets
> updated. The second stays on the old value.
>
> Can't I use a block multiple times? How can I do this?
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Include-the-same-t-block-multiple-times-tp5718254.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>