[Seaside] Ajax and dynamic variables
philippe.marschall at gmail.com
Mon Oct 24 14:31:30 UTC 2011
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.
MyDynamicVariable use: value during: [
"actual callback code"] ]
(maybe it needs a value holder but I don't think so)
More information about the seaside