[Seaside] [Newbie] Confused about #registerAsApplication
bakki.kudva at gmail.com
Fri Aug 18 21:51:31 UTC 2006
Thanks Ramon, That sheds more light on what I discovered in the class
methods. When browsing I was only looking into the instance methods.
On 8/18/06, Ramon Leon <ramon.leon at allresnet.com> wrote:
> > -----Original Message-----
> > From: seaside-bounces at lists.squeakfoundation.org
> > [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf
> > Of Bakki Kudva
> > Sent: Friday, August 18, 2006 12:27 PM
> > To: seaside
> > Subject: [Seaside] [Newbie] Confused about #registerAsApplication
> > Hi,
> > I have been reading that a new app which is subclassed from
> > WAComponent should be registered like MyComponent
> > registerAsApplication: 'foo'.
> > However when I see the examples like the Store or the
> > Scriptaculous SUAllTests apps I don't see this in their
> > initialize methods(or anywhere else in their components). Is
> > this automatically done for every subclass of WAComponent so
> > it shows up in seaside/config?
> > Thanks for your help,
> No, registerAsApplication creates an entry in config, however, you can also
> do it manually from config for any component that returns true from
> canBeRoot on the class side. So, registerAsApplication is not required,
> it's a convenience method for automatically setting up a site when code is
> loaded into the image.
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside