[Seaside] WACurrentSession value is nil within a forked block

Leandro Perez leandromperez at gmail.com
Mon Nov 5 14:56:31 UTC 2007

Hello list,
I have a simple seaside SUComponent subclass called ForkComponent:

ForkComponent class>> canBeRoot

ForkComponent >> renderContentOn:html
(html button)
text: 'test fork';
onClick: (html evaluator callback:
[:script |
 self session. " the session is NOT NIL here"
[self session "The session IS NIL here!!"] fork

When the callback is processed, I can access the session by sending #session
to self (the component). The problem I have is that the session is always
nil within the forked block.

Is this behavior correct?
should the session be nil inside a forked block?
if so, why?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20071105/ddc43582/attachment.htm

More information about the seaside mailing list