You should have one of your components be declared as a root of the
application, say MyWebApplication, via
MyWebApplication class>>canBeRoot
^true
MyWebApplication class>>initialize
| app |
app := self registerAsApplication: 'myapplication'.
(app libraries)
add: MyWebApplicationScripts;
add: MyWebApplicationStyles
where MyWebApplicationScripts and MyWebApplicationStyles are subclasses of
WAScriptLibrary and WAStyleLibrary respectively. You can then reinitialize
your application via,
MyWebApplication initialize
Hope this helps,
-Boris
--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
[hidden email]
CONFIDENTIALITY NOTICE
This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.
Thank you.
-----Original Message-----
From:
[hidden email]
[mailto:
[hidden email]] On Behalf Of Günther
Schmidt
Sent: Friday, June 02, 2006 1:06 PM
To:
[hidden email]
Subject: [Seaside] How do I use "Libraries"
Hi all,
how do I use the libraries.
I just want to keep CSS in one place instead of using WAComponent>>style.
So I read on this list to use a library, I've subclassed WAStyleLibrary
but I'm not sure how to set it up.
Thanks
Günther
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside