[Seaside] Seaside to return (only) xml data?
jayh at panix.com
Wed Jun 6 00:38:33 UTC 2007
Thanks for the response. I see #handleRequest: in WAApplication,
but not WAEntryPoint - is that the place?
Does this chunk of code in #handleRequest: maintain the connection
between particular users and particular object instances (as happens
transparently when using WAComponent)?
self useSessionCookie ifTrue:
[aRequest cookies at: self name ifPresent:
aRequest fields at: self handlerField ifAbsentPut: [v]]].
On Jun 5, 2007, at 8:02 PM, Avi Bryant wrote:
> On 6/5/07, Jay Hardesty <jayh at panix.com> wrote:
>> So I assume that my renderContentOn: method
>> should contain something like:
>> self session returnResponse: (WAResponse new
>> contentType: 'text/xml';
>> nextPutAll: (some xml formatted string here...);
> Code's right, placement's wrong - you shouldn't use #returnResponse:
> from within a #renderContentOn: , use it from within a callback.
> If your application is purely XML based, I wouldn't use WASession or
> WAComponent at all, but just subclass WAEntryPoint and override
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside