Rendering partial Components with Environmental support

2009-04-29 Thread Christian Senk

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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Rendering partial Components with Environmental support

2009-04-29 Thread Christian Senk

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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




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