[Seaside] Re: don't I have to configure ...

Philippe Marschall philippe.marschall at gmail.com
Fri Apr 6 09:59:29 UTC 2007


2007/4/6, Lukas Renggli <renggli at gmail.com>:
> > > Assuming that #style is a method in a WAComponent, then the answer is
> > > yes, this works. However this is not ment to be used like this (well,
> > > the idea is not too bad, I've just never seen it used like this).
> > > Usually instances of WAFileLibrary are global to whole applications.
> > > If you need specific styles with a single component you can put them
> > > there (but that again is rarely used).
> >
> > The CSS returned by #style isn't really scoped to the component, is
> > it? It's a global CSS (added to the document head) applied to every
> > element of the page, right?
>
> Yes it is scoped globally (that's a CSS thing), but it is only
> included when the particular component is visible on the page. That's
> one of the reasons we never use it, it is hard to predict what the CSS
> does in the end effect ...

Where visible means accessible from the root component (indirectly)
via #children and not #call'ed. Visible doesn't mean rendered, right?

Philippe

> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the Seaside mailing list