[Seaside] 3.0 session/request redirect

Philippe Marschall philippe.marschall at gmail.com
Mon Feb 22 17:55:46 UTC 2010

2010/2/22 radoslav hodnicak <rh at 4096.sk>:
> I have an outside form submitting login information to enter my seaside app,
> so as a first thing I want to do a redirect if the login info is correct, to
> keep browser from resubmitting the info. In my session #start I do
> ... process login info, save user
> self requestContext redirect.
> but when this code runs it gives me a 'You can only #call: and #answer: from
> within a callback or a Task.' error. Why?

Because control flow is only supported in the callback phase.

Moving your login code to #initialRequest: of you root component (you
don't need the redirect) should fix your problem.


More information about the seaside mailing list