[Seaside-dev] hot to not use continuations

Julian Fitzell jfitzell at gmail.com
Thu Apr 9 10:17:27 UTC 2009


On Mon, Mar 30, 2009 at 10:18 PM, Lukas Renggli <renggli at gmail.com> wrote:

> > handleFiltered: aRequestContext
> >        "Handle the request inside a transaction and with a retry policy"
> >
> >        [super handleFiltered: aRequestContext]
> >                on: WAResponseNotification
> >                do:[:n|
> >                        self halt.
> >                        aRequestContext response]
> >
> > but when I set the app to use WAMain it won't halt and it renders a blank
> page.
> > Is that expected?
>
> I don't really see the reason why WAMain is still there. It is almost
> empty and it is certainly not a valid main class. You need to use
> WARenderLoopMain or one of its subclasses. I am sure Julian can tell
> us more.
>

It's there because it's an abstract superclass. The Session package defines
and refers to it and requires its protocol. The actual useful subclasses are
provided by other packages. WAMain is the moral equivalent of writing this
in a C program:

int main() {

}

Julian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside-dev/attachments/20090409/5d53849a/attachment.htm


More information about the seaside-dev mailing list