WARender>>shouldRedirect

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

WARender>>shouldRedirect

Sebastian Sastre-2
Hi there,
   
    I have regularly this MessageNotUndesrtood: UndefinedObject>>isGet  with:
 
WARender>>shouldRedirect
 ^ request isGet not or: [(request fields includesKey: '_n') not]
 
    And allways I patch it to:
 
WARender>>shouldRedirect
 ^ request isNil or:[ request isGet not or: [(request fields includesKey: '_n') not]]
 
    And then I have no more problems about that. There is any inconvenience to integrate this patch to official Seaside? how and who will do it?
 
    cheers,
 

Sebastian Sastre


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WARender>>shouldRedirect

Damien Cassou-3
2007/2/28, Sebastian Sastre <[hidden email]>:
>
>
> Hi there,
>
>     I have regularly this MessageNotUndesrtood: UndefinedObject>>isGet
> with:


I often have this message when I want to use #call: into a rendering
method without being in a callback. Is that your problem too ?


--
Damien Cassou
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: WARender>>shouldRedirect

Sebastian Sastre-2
In my case the #call: is sent from a WAXXXTask so there is no rendering nor
callback (that I should be noticed of)

Sebastian Sastre

 

> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Damien Cassou
> Enviado el: Miércoles, 28 de Febrero de 2007 09:50
> Para: The Squeak Enterprise Aubergines Server - general discussion.
> Asunto: Re: [Seaside] WARender>>shouldRedirect
>
> 2007/2/28, Sebastian Sastre <[hidden email]>:
> >
> >
> > Hi there,
> >
> >     I have regularly this MessageNotUndesrtood:
> UndefinedObject>>isGet
> > with:
>
>
> I often have this message when I want to use #call: into a
> rendering method without being in a callback. Is that your
> problem too ?
>
>
> --
> Damien Cassou
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: WARender>>shouldRedirect

Ramon Leon-5
In reply to this post by Damien Cassou-3
> I often have this message when I want to use #call: into a
> rendering method without being in a callback. Is that your
> problem too ?
>
>
> --
> Damien Cassou

When would you ever want to use #call: in a rendering methods outside the
context of a callback?

Ramon Leon
http://onsmalltalk.com 

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WARender>>shouldRedirect

Damien Cassou-3
2007/2/28, Ramon Leon <[hidden email]>:
> When would you ever want to use #call: in a rendering methods outside the
> context of a callback?

I don't want it anymore, this is just a mistake I often made :-)

--
Damien Cassou
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: WARender>>shouldRedirect

Sebastian Sastre-2
In reply to this post by Ramon Leon-5
> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Ramon Leon
> Enviado el: Miércoles, 28 de Febrero de 2007 12:16
> Para: 'The Squeak Enterprise Aubergines Server - general discussion.'
> Asunto: RE: [Seaside] WARender>>shouldRedirect
>
> > I often have this message when I want to use #call: into a
> rendering
> > method without being in a callback. Is that your problem too ?
> >
> >
> > --
> > Damien Cassou
>
> When would you ever want to use #call: in a rendering methods
> outside the
> context of a callback?

In tasks. How do you prevent that? I'm using a task for the user login based
on the Store example. Do you know a better way to do it?

Sebastian

> Ramon Leon
> http://onsmalltalk.com 
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: WARender>>shouldRedirect

Ramon Leon-5
> In tasks. How do you prevent that? I'm using a task for the
> user login based on the Store example. Do you know a better
> way to do it?
>
> Sebastian

Tasks don't have rendering methods, you're supposed to call and answer in
tasks, that's what gives them the ability to do workflow.

Ramon Leon
http://onsmalltalk.com 

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: WARender>>shouldRedirect

Sebastian Sastre-2

> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Ramon Leon
> Enviado el: Miércoles, 28 de Febrero de 2007 13:42
> Para: 'The Squeak Enterprise Aubergines Server - general discussion.'
> Asunto: RE: [Seaside] WARender>>shouldRedirect
>
> > In tasks. How do you prevent that? I'm using a task for the
> user login
> > based on the Store example. Do you know a better way to do it?
> >
> > Sebastian
>
> Tasks don't have rendering methods, you're supposed to call
> and answer in tasks, that's what gives them the ability to do
> workflow.

I use for that too and there is no callback there right?

Sebastian Sastre

>
> Ramon Leon
> http://onsmalltalk.com 
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside