[Seaside] Serving non-html dynamically

James Foster Smalltalk at JGFoster.net
Fri Jul 2 16:24:09 UTC 2010

Hi Sven,

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'.
	response doNotCache.
	self session returnResponse: response.


On Jul 2, 2010, at 1:24 AM, Sven Van Caekenberghe wrote:

> Hi,
> 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.
> TIA,
> Sven
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list