[Seaside-dev] Automatic registration of children?

Julian Fitzell jfitzell at gmail.com
Thu Aug 19 20:58:45 UTC 2010


On Thu, Aug 19, 2010 at 9:42 PM, Lukas Renggli <renggli at gmail.com> wrote:
> On 19 August 2010 22:34, Julian Fitzell <jfitzell at gmail.com> wrote:
>> Well, how would you know whether all the subcomponents had implemented
>> #children without using the slow method to find them all and check?
>
> I don't understand why you would need to know that. The only change I
> propose is to implement
>
>   WAComponent>>children
>      ^ WASlowlyFigureOutAllDirectChildren for: self
>
> Everything else would continue as usual. People could override
> #children as they do today.

Ah, it hadn't occurred to me that an implementation within #children
would be doable (I was talking about at the render loop). Would that
implementation work? I guess you'd need to prevent #render: from
rendering anything that was a Presenter, wouldn't you? I suppose we
could make WARenderer>>#render: dispatch: through the RenderContext to
allow that level of control...

Julian


More information about the seaside-dev mailing list