[Seaside] revel decoration

Johan Brichau johan at inceptive.be
Tue Mar 29 17:29:13 UTC 2011


On 29 Mar 2011, at 19:17, Diogenes Moreira wrote:

> I don't know why, but  the decorator is present at next rendering time for my component.

afaik, adding or removing a decorator is similar to changing the state of the component: you should not do that while rendering.
The component state is saved before rendering, which means state changes during rendering are lost.

A solution can be to add/remove the decorator in an action callback (e.g. from the calling site of #inform: ?)
But I'm also interested why you are dynamically adding/removing a decorator like that. 

Johan


More information about the seaside mailing list