Session in go method

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

Session in go method

Jakub-8
Hello,

i have WASession subclass: #MySession with instance variable root. There i want store root component of my app (MyRoot).

i try do this:
initialize
    super initialize.

    session root: self

but session is unknown there, then i try this:

make WATask and in go method call:

session root: MyRoot new.
...

but there is unknown too...

I want register root component in session soon as possible, where can i do that?
--
Jakub.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Session in go method

Randal L. Schwartz
>>>>> "Jakub" == Jakub  <[hidden email]> writes:

Jakub> I want register root component in session soon as possible, where can i
Jakub> do that?

Your root component comes from the class registered for your application.

What problem are you trying to solve?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Session in go method

Lukas Renggli
In reply to this post by Jakub-8
>     session root: self
>
> but session is unknown there, then i try this:

You probably have to write 'self session', not just 'session'. There
is no such variable.

Lukas

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

Re: Session in go method

Jakub-8
Lukas:
Oh thank you :-), that was really simple mistake taking lot of time :)

Randal:
i have root component calling menu and content and from this i want to call root method renderContentOn from menu. i need see to root :)

--
Jakub.

2008/1/7, Lukas Renggli <[hidden email]>:
>     session root: self
>
> but session is unknown there, then i try this:

You probably have to write 'self session', not just 'session'. There
is no such variable.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



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