[Seaside] Ajax callback question: how to update component tree
before #children gets called?
renggli at gmail.com
Fri Feb 8 06:57:29 UTC 2008
> My question: when the anchor is clicked, how do I arrange for
> self updateComponentTree
> to execute before #children? Is there a way to have a separate callback for
> - updates to component tree (before #children) Vs.
> - re-rendering callback (after #children)
Callbacks are always executed in the context of the defining
component. So when callbacks are processed the whole component tree is
traversed (using the information from #children) and the callbacks are
triggered in the right order in the context of their owning component.
That's why you get 'Components not found while processing callbacks'
when you fail to specify #children correctly.
I don't quite understand why you need to update the children before
the callbacks are processed? Maybe you can provide a running example?
More information about the seaside