[Seaside] Rendering page as XML or JSON?

Conrad Taylor conradwt at gmail.com
Sat Apr 19 07:52:47 UTC 2008


Hi ALL, thanks for the information and I'll really appreciate it.  At this
time, I'm looking to convert a Rails application to Seaside.
-Conrad

On Thu, Apr 17, 2008 at 1:52 PM, Michael Lucas-Smith <
mlucas-smith at cincom.com> wrote:

>
>  self session currentRequest at: #beXml ifPresent: [ : it |    self
> > session returnResponse:        (WAResponse new
> >            contentType: 'text/xml' ;
> >            contents: someObject sixxString readStream ;
> >            yourself)]
> >
> >
> If you make your own WACanvas subclass too you can do something like this:
>
>   response := Seaside.WAResponse new.
>   response contentType: 'application/atom+xml'.
>   response nextPutAll: '<?xml version="1.0" encoding="utf-8"?>'.
>   atom := SeasideAtom.AtomCanvas new.
>   atom context: html context.
>   html context document stream: response stream.
>   ... do stuff with our new atom canvas ...
>   self session returnResponse: response.
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080419/d731f5d7/attachment-0001.htm


More information about the seaside mailing list