[Seaside] Seaside to return (only) xml data?

Avi Bryant avi at dabbledb.com
Wed Jun 6 00:02:26 UTC 2007

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...);
>                 yourself)

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


More information about the Seaside mailing list