[Seaside] Ajax and dynamic variables

Norbert Hartl norbert at hartl.name
Mon Oct 24 15:01:57 UTC 2011

Am 24.10.2011 um 16:31 schrieb Philippe Marschall:

> 2011/10/24 Norbert Hartl <norbert at hartl.name>:
>> I need to provide some context to my magritte components and tried to use WADynamicVariable for it. But all the requests that are coming in are ajax requests. I've used the use:during: for the dynamic variable in the rendering of the topmost component. But the ajax requests seem to take another route making my usage of the dynamic var useless.
>> What would be the best extension point for injecting a block to make use of dynamic vars?
> You can use something like the following to "copy" a dynamic variable
> from the render to the action phase
> | value |
> value := MyDynamicVariable value.
> html anchor
>    callback: [
>        MyDynamicVariable use: value during: [
>            "actual callback code"] ]
> (maybe it needs a value holder but I don't think so)
Ah, yes. The solution was too obvious for me to discover it. But now I see that this is not really a practical approach.



More information about the seaside mailing list