Hi all,
I would like to create a Widget for PIER which will generate a HTML page
by using the tree structure of PIER with a visitor. Currently I have
created a test by creating a visitor who overloads PRViewRenderer (PIER
-SEASIDE). Unfortunately I encounter a problem of context when I launch
my app. Can you help me to understand how to create a temporary context?
Sample of my code:
kernel := PRKernel instances anyOne.
myVisitor := SPGHTMLVisitor new.
myVisitor renderer: WAStaticHtmlCanvas new.
page := kernel root.
PRCurrentContext
use: (PRContext kernel: kernel)
during: [myVisitor start: page.].
Thanks in advance
Pe