[Seaside] Serving non-html dynamically
Smalltalk at JGFoster.net
Fri Jul 2 16:24:09 UTC 2010
I have occasion to return dynamically generated documents that open in Excel. The following gives the general approach (where 'self returnCSV' is in an anchor callback block):
| response |
response := WAResponse
document: self asCSV
mimeType: (WAFileLibrary mimetypeFor: 'csv')
fileName: self caption , ' (' , DateAndTime now printString , ').csv'.
self session returnResponse: response.
On Jul 2, 2010, at 1:24 AM, Sven Van Caekenberghe wrote:
> Does anybody know or can point me to a simple/elegant solution to serving non text/html content dynamically using Seaside ?
> Say you have a Seaside app that generates dynamic reports in formats like PDF or XLS, how to you generate such an answers ? Serving dynamically generated images like graphs would be another use case.
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside