Session is Lost (was Re: [Seaside] A progress bar for seaside)
Alejandro Martínez
alemartinez2112 at gmail.com
Mon Mar 3 19:47:23 UTC 2008
Lost but not in an island.
i have this problem: If i want to access the seaside session inside de
forWork block will answer nil, e.g:
html div id: 'id1';
with: 'Opening...'
waitMax: 30 seconds
forWork: [ self session inspect halt. (Delay forSeconds: 10) wait. ]
thenRender:[:r :value | r text: value]
the inspector shows nil.
what could be happening here?
i've followed the message chain over the WATagBrush down to this method in
BlockContext and BlockClosure
valueWithing: onTimeout
but i cannot figure out from there how can i fix this one.
regards
2008/2/29, Alejandro Martínez <alemartinez2112 at gmail.com>:
>
> thanks for your answer Ramon, it worked pretty fine.
>
>
> 2008/2/29, Ramon Leon <ramon.leon at allresnet.com>:
> >
> > >
> > > i need a progress bar for keeping the user notified about the
> > > state of an operation, the best what i've read for that until
> > > now is this :
> > >
> > > http://onsmalltalk.com/programming/smalltalk/polling-for-long-
> > > running-processes/
> > >
> > > but when i tested i get an infinite recursion (i think).
> > > to test it, install the attached mcz on a test image, add an
> > > entry point with SULibrary and open a Transcript. i added a
> > > lot of output to understand what's happening.
> > > maybe more experienced developers (Ramon Leon?) could fix it
> > > or tell what's wrong?
> > >
> > > (note the callback of the periodical is never evaluated)
> >
> >
> > That artcle is a bit out of date, download my image and check out the
> > current version of those methods. They work a bit differently now but I
> > still use them heavily and they work great. I don't use the decay hack
> > anymore, I just send down some script and stop the polling. I'm in a
> > hotel
> > in New Hampshire at the moment so I don't have time to dig into any
> > code,
> > but I can tell you what's in my image works well.
> >
> > Ramon Leon
> > http://onsmalltalk.com
> >
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080303/7498eae2/attachment.htm
More information about the seaside
mailing list