Yes, the code I gave you at that time won't work in Seaside 2.8.
WARenderLoop has been completely rewritten to avoid the need to store
many unnecessary continuations. This greatly reduces the memory
requirements per session.
What I suggest to do is that you implement a decoration that you can
add around your component. Inside this decoration you store the
context-holder and wrap the rendering and callback processing into
PRCurrentContext use: contextHolder during: [ ... ]
HTH,
Lukas
On 02.08.2007, at 22:20, Keith Hodges wrote:
Hello Lukas,
a while ago you gave me this code. Now I am using the latest
seaisde 2.8 it doesnt work as I would like. The widgit works but
its callbacks fail. Any thoughts on what may have changed?
cheers
Keith
From: Keith Hodges <keith_hodges(a)yahoo.co.uk>
Date: 27. Juli 2007 04:30:25 GMT+02:00
To: "small >> \"SmallWiki, Magritte, Pier and Related Tools
...\""
<smallwiki(a)iam.unibe.ch>
Subject: Help needed to run widgets in other contexts
Reply-To: "Magritte, Pier and Related Tools ..."
<smallwiki(a)iam.unibe.ch>
Help!
Hi All,
A while ago Lukas gave me the following code for opening a pier widget
so that it would be able to access its context even though we are not
even in a pier application!
self - is my control panel which runs in the WADispatcherEditor's
session.
widget is PUUsers or PUGroups
ControlPanel-callWidget: widget titled: title
PRCurrentContext use: self during: [
WARenderLoop new call: (widget
addDecoration: (WAWindowDecoration new
title: title;
yourself);
yourself) ]
This works to the extent that the widget displays correctly,
however the
buttons do not work due to PRCurrentContext value being nil.
I am using the latest everything in the development universes.
Does anyone have any ideas?
thanks in advance
Keith
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
Lukas Renggli
http://www.lukas-renggli.ch