[Seaside-dev] returnResponse: on seaside 3.0

Nick Ager nick.ager at gmail.com
Fri May 28 17:53:53 UTC 2010


>
>  is seaside 2.8 you could do something like this:
>
> self session returnResponse: (WAResponse
>  document: aDocument
> mimeType: 'application/vnd.ms-excel'
> fileName: 'xxx.xls')
>
> that is, return in the response a specific content, in this case a csv
> report.
>
> How can I do the same with Seaside 3.0? I could not find it...
>

In my project I've code which reads:

self requestContext respond:
[ :response |
response
contentType: WAMimeType textHtml;
nextPutAll: (WAHtmlCanvas builder
documentClass: WAXmlDocument;
fullDocument: true;
render: [:html |
html space
];
yourself)]

hope this points in the a sensible direction

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside-dev/attachments/20100528/ba12d7ad/attachment.htm


More information about the seaside-dev mailing list