[Seaside-dev] hot to not use continuations

Sebastian Sastre ssastre at seaswork.com
Mon Mar 30 19:41:08 UTC 2009


thanks Lukas. I'm doing something like this and it works:

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? 
thanks
sebastian


> -----Mensaje original-----
> De: seaside-dev-bounces at lists.squeakfoundation.org 
> [mailto:seaside-dev-bounces at lists.squeakfoundation.org] En 
> nombre de Lukas Renggli
> Enviado el: Monday, March 30, 2009 15:40
> Para: Seaside - developer list
> Asunto: Re: [Seaside-dev] hot to not use continuations
> 
> #handleFiltered: never returns, instead it raises a
> WAResponseNotification. See the implementors of #handleFiltered:.
> 
> Lukas
> 
> On Mon, Mar 30, 2009 at 8:27 PM, Sebastian Sastre 
> <ssastre at seaswork.com> wrote:
> > because I'm seeing crazy things like ensure blocks being 
> executed twice and
> > ifCurtailed: blocks never executing that's why
> >
> >
> >> -----Mensaje original-----
> >> De: seaside-dev-bounces at lists.squeakfoundation.org
> >> [mailto:seaside-dev-bounces at lists.squeakfoundation.org] En
> >> nombre de Boris Popov
> >> Enviado el: Monday, March 30, 2009 15:18
> >> Para: Seaside - developer list
> >> Asunto: RE: [Seaside-dev] hot to not use continuations
> >>
> >> Why so hot? Granted, I haven't been following development 
> of 2.9 much,
> >> so I know nothing about motivation for removing continuations
> >> aside from
> >> ability to support Smalltalks that don't support them.
> >>
> >> -Boris
> >>
> >> --
> >> +1.604.689.0322
> >> DeepCove Labs Ltd.
> >> 4th floor 595 Howe Street
> >> Vancouver, Canada V6C 2T5
> >> http://tinyurl.com/r7uw4
> >>
> >> boris at deepcovelabs.com
> >>
> >> 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: seaside-dev-bounces at lists.squeakfoundation.org
> >> [mailto:seaside-dev-bounces at lists.squeakfoundation.org] On 
> Behalf Of
> >> Sebastian Sastre
> >> Sent: Monday, March 30, 2009 11:13 AM
> >> To: 'Seaside - developer list'
> >> Subject: [Seaside-dev] hot to not use continuations
> >>
> >> hi there,
> >> I'm testing not to use continuations in an app.
> >> I've set:
> >> - Main Class:  WAMain
> >> - Action Phase Continuation Class: WAActionPhaseContinuation
> >>
> >> interestingly, after setting that, the non stopping halt previously
> >> mentioned started to halt.
> >> Also I'm seeing in a filter (I've made for testing) this:
> >>
> >> handleFiltered: aRequestContext
> >>
> >>       (super handleFiltered: aRequestContext) 
> ifNotNilDo:[:response|
> >>               self halt.
> >>               ^ response].
> >>
> >> it halts as expected but response has not aWAResponse, it 
> has aFilter
> >> (itself).
> >> What I'm missing about not using continuations?
> >> thanks
> >> sebastian
> >> PD: that app is for testing. It's trivial: is just a component that
> >> renders a title. No tasks, no #call:
> >>
> >> _______________________________________________
> >> seaside-dev mailing list
> >> seaside-dev at lists.squeakfoundation.org
> >> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
> >> _______________________________________________
> >> seaside-dev mailing list
> >> seaside-dev at lists.squeakfoundation.org
> >> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
> >
> > _______________________________________________
> > seaside-dev mailing list
> > seaside-dev at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
> >
> 
> 
> 
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev



More information about the seaside-dev mailing list