I always have the same problem with the initialization
of WriteStream.
In fact I do not see how to initialize it. I tested with:
# myVisitor renderer: (WAStaticHtmlCanvas root: WAHtmlRoot new).
# myVisitor renderer document stream: String new writeStream.
Try to use
WAStaticHtmlCanvas document: (WAHtmlStreamDocument new
stream: String new writeStream)
But I do not obtain the result that I want. Moreover,
I have this
error
since an update of PIER and SEASIDE. According to what I saw, the
WAStaticHtmlCanvas class was modified. Could you give me information?
I've never used WAHtmlStreamDocument. Could be even broken in the
latest Seaside.
Another question: I would like to know if it is
possible to add a link
towards a file (ex: afile.zip) in PIER to download it from the server?
Example with a traditional server HTML: download this file
# <a href=’http://127.0.0.1:8080/seaside/pier/myFile.zip’> download
this
file </a>
See PRDownloadView.
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch