[Seaside-dev] Re: [Seaside] How to show the errors produced when a SUEvaluator is used ?

Lukas Renggli renggli at gmail.com
Sun Oct 12 18:43:32 UTC 2008


On 10/12/08, Julian Fitzell <jfitzell at gmail.com> wrote:
> On Sun, Oct 12, 2008 at 11:35 AM, Lukas Renggli <renggli at gmail.com> wrote:
>  >> I'm not sure how this stuff works but do we not return an Internal
>  >> Error response for an AJAX request? If so, can't that just be detected
>  >> client-side and something be done with the response contents? Maybe
>  >> that's what #onFailure: does though...
>  >
>  > Yes, #onFailure: looks at the error code. The walkbacks should
>  > therefore all set a propre response code, I don't they currently do
>  > that.
>
> You're right... the walkback handler doesn't (the rest do). Can I just
>  add "self requestContext response internalError" in
>  #renderContentsOn:? Is that a valid mechanism for that now?

Yes, that could be done. Maybe even in #updateRoot: then would even
works for streaming servers.

Another thing to consider is that some browsers (namely IE) do not
display the response coming from the server (depending on the length),
but a built-in error message.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside-dev mailing list