[Seaside] how to get dynamic files?
Smalltalk at JGFoster.net
Wed Feb 25 04:19:28 UTC 2009
Here is how I return dynamic content:
callback: [self returnCSV];
with: 'Export CVS file to Excel';
| response |
response := WAResponse
document: self asCSV
mimeType: (WAFileLibrary mimetypeFor: 'csv')
fileName: caption , ' (' , DateAndTime now printString , ').csv'.
self session returnResponse: response.
Hope that helps,
On Feb 24, 2009, at 5:02 PM, Oleg Korsak wrote:
> My method in a WAFileLibrary subclass returns dynamic contents
> it on the fly). But when I'm trying to download it (no matter how many
> times) - the contents is the same as in the begining. Is it possible
> get a dynamically created file from WAFileLibrary so it could be
> different for each request?
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside