Re: DocumentHandler
Karsten Kusche <[email protected]> Tue, 2 Jun 2020 11:31:29 +0000
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
Hi Annick, you basically need to respond with a file: WACurrentRequestContext value respond: [:response | response document: aDocument. ] aDocument would be something that responds to #seasideMimeDocument (like ByteArray, String, or WAMimeDocument). In #document: you’ll also find all the methods you could/should sent to the response to configure the response. I’d suggest you create your own WARequestHandler subclass, register it and handle your requests there. Kind Regards Karsten — Georg Heeg eK Wallstraße 22 06366 Köthen Tel.: 03496/214328 FAX: 03496/214712 Amtsgericht Dortmund HRA 12812 Am 2. Juni 2020 um 11:20:47, Annick Fron ([email protected]<mailto:[email protected]>) schrieb: Hi, I would like to serve a custom dynamically generated PDF file, what is the best option ? Use a DocumentHandler ? If yes how ? Annick _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside