You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by springinaction <ma...@porsche.co.at> on 2010/06/04 11:38:11 UTC
Zone Update issue
I have the following structure in my DOM:
<div id="someZone" class="t-zone">
<div id="someGrid" class="t-data-grid">
...
</div>
</div>
The zone is defined like that:
@Component
private Zone someZone;
<t:zone t:id="someZone" id="someZone" t:update="show">
and updated via a MultiZoneUpdate:
return new MultiZoneUpdate("someOtherZone", someOtherZone).add("someZone",
someZone);
After the zone update the DOM looks like that:
<div id="someZone" class="t-zone">
<div id="someZone" class="t-zone">
<div id="someGrid-12902522581" class="t-data-grid">
...
</div>
</div>
</div>
Why is the someZone duplicated and how to prevent the generated id for the
grid?
Thanks!
--
View this message in context: http://old.nabble.com/Zone-Update-issue-tp28777734p28777734.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: Zone Update issue
Posted by springinaction <ma...@porsche.co.at>.
thanks. that helped.
Christophe Cordenier wrote:
>
> Hi
>
> You should call the .getBody() method of your Zone component :
>
> new MultiZoneUpdate("someOtherZone", someOtherZone.getBody())
>
> Also note that Grid component has inplace parameter to enable ajax refresh
> on sort and navigation.
>
> 2010/6/4 springinaction <ma...@porsche.co.at>
>
>>
>> I have the following structure in my DOM:
>>
>> <div id="someZone" class="t-zone">
>> <div id="someGrid" class="t-data-grid">
>> ...
>> </div>
>> </div>
>>
>> The zone is defined like that:
>>
>> @Component
>> private Zone someZone;
>>
>> <t:zone t:id="someZone" id="someZone" t:update="show">
>>
>> and updated via a MultiZoneUpdate:
>>
>> return new MultiZoneUpdate("someOtherZone",
>> someOtherZone).add("someZone",
>> someZone);
>>
>> After the zone update the DOM looks like that:
>>
>> <div id="someZone" class="t-zone">
>> <div id="someZone" class="t-zone">
>> <div id="someGrid-12902522581" class="t-data-grid">
>> ...
>> </div>
>> </div>
>> </div>
>>
>> Why is the someZone duplicated and how to prevent the generated id for
>> the
>> grid?
>>
>> Thanks!
>> --
>> View this message in context:
>> http://old.nabble.com/Zone-Update-issue-tp28777734p28777734.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
>>
>>
>
>
> --
> Regards,
> Christophe Cordenier.
>
> Developer of wooki @wookicentral.com
>
>
--
View this message in context: http://old.nabble.com/Zone-Update-issue-tp28777734p28828786.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: Zone Update issue
Posted by Christophe Cordenier <ch...@gmail.com>.
Hi
You should call the .getBody() method of your Zone component :
new MultiZoneUpdate("someOtherZone", someOtherZone.getBody())
Also note that Grid component has inplace parameter to enable ajax refresh
on sort and navigation.
2010/6/4 springinaction <ma...@porsche.co.at>
>
> I have the following structure in my DOM:
>
> <div id="someZone" class="t-zone">
> <div id="someGrid" class="t-data-grid">
> ...
> </div>
> </div>
>
> The zone is defined like that:
>
> @Component
> private Zone someZone;
>
> <t:zone t:id="someZone" id="someZone" t:update="show">
>
> and updated via a MultiZoneUpdate:
>
> return new MultiZoneUpdate("someOtherZone", someOtherZone).add("someZone",
> someZone);
>
> After the zone update the DOM looks like that:
>
> <div id="someZone" class="t-zone">
> <div id="someZone" class="t-zone">
> <div id="someGrid-12902522581" class="t-data-grid">
> ...
> </div>
> </div>
> </div>
>
> Why is the someZone duplicated and how to prevent the generated id for the
> grid?
>
> Thanks!
> --
> View this message in context:
> http://old.nabble.com/Zone-Update-issue-tp28777734p28777734.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
>
>
--
Regards,
Christophe Cordenier.
Developer of wooki @wookicentral.com