[Seaside] Seaside Components: Parent / Children

Sébastien Julliand sebjulliand at gmail.com
Mon May 15 15:58:10 UTC 2006


2006/5/15, Avi Bryant <avi.bryant at gmail.com>:
>
> On May 15, 2006, at 5:39 PM, Sébastien Julliand wrote:
>
> > 2006/5/15, Avi Bryant <avi.bryant at gmail.com>:
> >>
> >> On May 15, 2006, at 5:01 PM, Sébastien Julliand wrote:
> >>
> >> > Hi everyone!
> >> >
> >> > I'm one of S. Ducasse's student and I'm working on a Seaside
> >> project,
> >> > an online Scrabble.
> >> >
> >> > I'd like to know if there is a way, when you are using a
> >> WAComponent
> >> > called by a WATask, to retrieve the caller?
> >> > In other words: is a WAComponent able to identify who is calling
> >> it?
> >>
> >> So, obvious first question: why do you want to know?
> >>
> >> Avi_______________________________________________
> >
> > Well, I need my WAComponent to display differents things based on wich
> > WATask is calling it
>
> So why not have the different WATasks configure the WAComponent they
> are creating slightly differently?
> I'm generally quite suspicious of code that knows too much implicit
> info about the context in which it is used.
>
That's a good point. I'll try to do something with the "clone" method
since my WAComponents aren't created at the same time and as you say
they are just slightly different.
Thanks for your advice!

Seb, back to work :)


More information about the Seaside mailing list