[Seaside] Re: don't I have to configure ...
renggli at gmail.com
Fri Apr 6 09:26:34 UTC 2007
> > 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 ...
More information about the Seaside