You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christian Senk <da...@gmx.de> on 2009/04/29 14:02:49 UTC
Rendering partial Components with Environmental support
Hello,
i have several custom components. Like in forms, some components require
that
they are nested another component. At the end it looks like:
<t:map t:id="pMap" [... some arguments ...] >
<t:imageLayer name="terrain" />
<t:imageLayer name="scene" />
</t:map>
The communication between the components is like in forms with
Environmental services
realized. The "MapSupport.class" is pushed in @BeginRender of
Map-Component and
popped in @CleanupRender. "t:imageLayer" doesn't work without that
environmental service.
In order to add AJAX support to the map component, an eventlink on the
client side fires
an event in the Map-Component and i would like to return only the body
of the Map-Component,
so only the body of the component would be rendered. The problem is,
that there is no invocation
of the Render-Lifecycle methods in the Map-Component, so there is no
MapSupport.
How could i add this Environmental service in order to render the body
properly and remove
it after that, like in @CleanupRender. Or is there another way?
Thanks and Greetings :)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Rendering partial Components with Environmental support
Posted by Christian Senk <da...@gmx.de>.
Forgot to mention that i use the tapestry 5.1.0.3 :)
Christian Senk schrieb:
> Hello,
>
> i have several custom components. Like in forms, some components
> require that
> they are nested another component. At the end it looks like:
>
> <t:map t:id="pMap" [... some arguments ...] >
> <t:imageLayer name="terrain" />
> <t:imageLayer name="scene" />
> </t:map>
>
> The communication between the components is like in forms with
> Environmental services
> realized. The "MapSupport.class" is pushed in @BeginRender of
> Map-Component and
> popped in @CleanupRender. "t:imageLayer" doesn't work without that
> environmental service.
>
> In order to add AJAX support to the map component, an eventlink on the
> client side fires
> an event in the Map-Component and i would like to return only the body
> of the Map-Component,
> so only the body of the component would be rendered. The problem is,
> that there is no invocation
> of the Render-Lifecycle methods in the Map-Component, so there is no
> MapSupport.
>
> How could i add this Environmental service in order to render the body
> properly and remove
> it after that, like in @CleanupRender. Or is there another way?
>
> Thanks and Greetings :)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org