Hi !
Thanks for your answer.
I tried your suggestion but the problem is the same. When i launch my
visitor, i obtain a basic stream.
I will try to find another solution.
For my link problem i tried with this :
url: (html context urlForDocument: (WACachedDocument fileName:
'.\staticPier.zip') asMIMEDocument content);
Pe
Lukas Renggli a écrit :
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