self session returnResponse: (WAResponse document: contents mimeType: 'application/pdf' fileName: pdfFile).
this can't be done in 2.9a3 I'm investigating how to do the same in 2.9a3
sebastian
this one is working in 2.9a3:
self requestContext responseGenerator response document: contents mimeType: 'application/csv' fileName: (model name, '.csv'); respond
cheers sebastian
-----Mensaje original----- De: seaside-dev-bounces@lists.squeakfoundation.org [mailto:seaside-dev-bounces@lists.squeakfoundation.org] En nombre de Sebastian Sastre Enviado el: Friday, May 22, 2009 12:28 Para: 'Seaside - developer list' Asunto: [Seaside-dev] export document
self session returnResponse: (WAResponse document: contents mimeType: 'application/pdf' fileName: pdfFile).
this can't be done in 2.9a3 I'm investigating how to do the same in 2.9a3
sebastian
seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
you shouldn't need #responseGenerator in there, I don't think...
On Fri, May 22, 2009 at 9:22 AM, Sebastian Sastre ssastre@seaswork.com wrote:
this one is working in 2.9a3:
self requestContext responseGenerator response document: contents mimeType: 'application/csv' fileName: (model name, '.csv'); respond
cheers sebastian
-----Mensaje original----- De: seaside-dev-bounces@lists.squeakfoundation.org [mailto:seaside-dev-bounces@lists.squeakfoundation.org] En nombre de Sebastian Sastre Enviado el: Friday, May 22, 2009 12:28 Para: 'Seaside - developer list' Asunto: [Seaside-dev] export document
self session returnResponse: (WAResponse document: contents mimeType: 'application/pdf' fileName: pdfFile).
this can't be done in 2.9a3 I'm investigating how to do the same in 2.9a3
sebastian
seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
No you don't need the responseGenerator, the request context knows the current response. The response generator gets it from the request context too.
The same question was recently answered in the seaside list, see "[Seaside] returning a response in seaside 2.9" (http://lists.squeakfoundation.org/pipermail/seaside/2009-May/020720.html).
Cheers, Lukas
On Fri, May 22, 2009 at 7:46 PM, Julian Fitzell jfitzell@gmail.com wrote:
you shouldn't need #responseGenerator in there, I don't think...
On Fri, May 22, 2009 at 9:22 AM, Sebastian Sastre ssastre@seaswork.com wrote:
this one is working in 2.9a3:
self requestContext responseGenerator response document: contents mimeType: 'application/csv' fileName: (model name, '.csv'); respond
cheers sebastian
-----Mensaje original----- De: seaside-dev-bounces@lists.squeakfoundation.org [mailto:seaside-dev-bounces@lists.squeakfoundation.org] En nombre de Sebastian Sastre Enviado el: Friday, May 22, 2009 12:28 Para: 'Seaside - developer list' Asunto: [Seaside-dev] export document
self session returnResponse: (WAResponse document: contents mimeType: 'application/pdf' fileName: pdfFile).
this can't be done in 2.9a3 I'm investigating how to do the same in 2.9a3
sebastian
seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
ah yeah, I supose I can take out the factory, thanks sebastian
-----Mensaje original----- De: seaside-dev-bounces@lists.squeakfoundation.org [mailto:seaside-dev-bounces@lists.squeakfoundation.org] En nombre de Lukas Renggli Enviado el: Friday, May 22, 2009 16:36 Para: Seaside - developer list Asunto: Re: [Seaside-dev] export document
No you don't need the responseGenerator, the request context knows the current response. The response generator gets it from the request context too.
The same question was recently answered in the seaside list, see "[Seaside] returning a response in seaside 2.9" (http://lists.squeakfoundation.org/pipermail/seaside/2009-May/
020720.html).
Cheers, Lukas
On Fri, May 22, 2009 at 7:46 PM, Julian Fitzell jfitzell@gmail.com wrote:
you shouldn't need #responseGenerator in there, I don't think...
On Fri, May 22, 2009 at 9:22 AM, Sebastian Sastre
ssastre@seaswork.com wrote:
this one is working in 2.9a3:
self requestContext responseGenerator response document: contents mimeType: 'application/csv' fileName: (model name, '.csv'); respond
cheers sebastian
-----Mensaje original----- De: seaside-dev-bounces@lists.squeakfoundation.org [mailto:seaside-dev-bounces@lists.squeakfoundation.org] En nombre de Sebastian Sastre Enviado el: Friday, May 22, 2009 12:28 Para: 'Seaside - developer list' Asunto: [Seaside-dev] export document
self session returnResponse: (WAResponse document: contents mimeType: 'application/pdf' fileName: pdfFile).
this can't be done in 2.9a3 I'm investigating how to do the same in 2.9a3
sebastian
seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
-- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ seaside-dev mailing list seaside-dev@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
seaside-dev@lists.squeakfoundation.org