[Seaside] Error: Components not found
Avi Bryant
avi at beta4.com
Thu Oct 21 20:48:33 CEST 2004
On Oct 21, 2004, at 7:22 PM, Yoel Jacobsen wrote:
> What's the role of #children whan using a callback?
A component's callbacks are evaluated in the dynamic context of its
ancestors in the UI tree. This lets its ancestors "control" those
callbacks - they can prevent them from executing if the user has not
been authenticated, for example, or they can catch validation errors
that occur within them and record these for displaying to the user
later, or they can set up thread-local variables that will be useful to
them, and so on. To achieve this, the component tree is walked
recursively during callback processing, and the callbacks for each
component are executed as it is visited. The #children method controls
this traversal - it's what's used to know which subcomponents to
recurse into. If a component isn't listed in #children, it won't get
visited, and so its callbacks will never get executed.
Avi
More information about the Seaside
mailing list