[Seaside] WATask and browser re-direct

Johan Brichau johan at inceptive.be
Thu Jul 5 07:40:04 UTC 2012

Hi Frank,

You only get back to the control flow following #call: when you send an #answer: in a callback.
If you do not want that, you can also use #show: instead of #call: (see http://book.seaside.st/book/components/calling/show-answer)

Maybe you should explain a bit more on what you are doing. It seems a little strange to me to call a component to do a redirect. 
Maybe we can help a bit more.


On 03 Jul 2012, at 04:18, squeakman wrote:

> Greetings,
> I have the following in a WATask:
> MyWATask>>go
>   self call: RedirectThing new.
>   self halt.
> The component RedirectThing does a browser redirect with code like this:
> RedirectThing>>updateRoot: anHtmlRoot
>   anHtmlRoot meta redirectAfter: 2 to: self redirectUrl
> I do get to the redirected page but control never gets transferred back to the "self halt" in MyWATask>>go.
> Is there some way to call #answer: from RedirectThing so that control goes back to MyWATask>>go and still getting the redirect to work?
> Thanks,
> Frank
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list