[Seaside] registering an application

stephane ducasse stephane.ducasse at free.fr
Sun Jan 8 20:22:24 CET 2006


Class methods are initialized once all the classes in a file have  
been loaded.
Save a class with a class initialize method and save it and have a  
look at the end you will see the invocation to initialize.

Have fun, smalltalk is strange for newcomers but powerful and fun.

Stef

On 8 janv. 06, at 18:56, Paulo Sérgio Medeiros wrote:

> Ahmmm  :-)
>
> just new to smalltalk, that was exactly what i want to know: when  
> class #initialize methods were executed ... thanks again!
>
> On 1/8/06, Lukas Renggli <renggli at gmail.com> wrote:> I've tried to  
> register an application in seaside using this as in David
> > Shaffer tutorial:
> >
> > (class method)
> > initialize
> >     self registerAsApplication: 'blah'.
> >
> > but it doesn't appear in the applications list at
> > http://localhost:9090/seaside/config.
> >
> > Although evaluating Class registerAsApplication: 'blah' at  
> workspace there
> > is no problem.
> >
> > Is there anything else that i have to do?
>
> Just creating an #initialize method doesn't execute it. So did you
> evaluate "YourClass initialize"? Only when loading your code into a
> fresh image all the class #initialize methods will be executed
> automatically by the system.
>
> 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
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the Seaside mailing list