[Seaside-dev] returnResponse: on seaside 3.0
Hernan Wilkinson
hernan.wilkinson at gmail.com
Mon May 31 15:15:29 UTC 2010
Thank you!
it gave me the lead to do what I need it, thanks
Hernan.
On Fri, May 28, 2010 at 2:53 PM, Nick Ager <nick.ager at gmail.com> wrote:
> 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
>
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside-dev/attachments/20100531/e19fad59/attachment.htm
More information about the seaside-dev
mailing list