<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Oliver,<div>I also had a hard time to use it... what I did is to study bibliocello and squeaksource3 packages (both at <a href="http://seaside.gemstone.com/ss">seaside.gemstone.com/ss</a>)</div><div>One interesting thing I found, is that you normally will want do something like this:&nbsp;</div><div><br></div><div>index</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>| index |</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;GET&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;Path: '/index'&gt;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"HERE I WANT TO SHOW MY COMPONENT"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>index := MyIndex new.</div><div><span class="Apple-tab-span" style="white-space:pre">        self requestContext respond: [:response |
                response
                        contentType: WAMimeType textHtml;
                        nextPutAll: (        WARenderCanvas builder
                                fullDocument: true;
                                rootBlock: [ :root | </span>index<span class="Apple-tab-span" style="white-space:pre"> updateRoot:root ];
                                render: [ :canvas |</span>&nbsp;index<span class="Apple-tab-span" style="white-space:pre"> renderContentOn: canvas ])].        </span></div><div><br></div><div>This is the "common answer pattern" &nbsp;I found.&nbsp;</div><div>Of course, this is just an example, and IRL you'll want to place the response login in a separate method, probable extending WAComponent with a method #respondRendered of something (both bibliocello and squeaksource3 uses this approach).</div><div><br></div><div>I hope this helps :)</div><div><br></div><div>cheers,</div><div>Esteban&nbsp;</div><div>&nbsp;<br><div><br><div><div>El 29/03/2011, a las 4:56a.m., Olivier Auverlot escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div bgcolor="#ffffff" text="#000000">
    Hi,<br>
    <br>
    I try desperately to use seaside-Rest for building REST services
    with Seaside. I read the documentation
    (<a class="moz-txt-link-freetext" href="http://code.google.com/p/seaside/wiki/SeasideRest">http://code.google.com/p/seaside/wiki/SeasideRest</a>) and read this
    post on the ML
(<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/pipermail/seaside-dev/2009-September/003584.html">http://lists.squeakfoundation.org/pipermail/seaside-dev/2009-September/003584.html</a>).<br>
    <br>
    Someone could explain me how to use this library ? Must I create an
    Seaside application for hosting the web service ? What is the
    content of the createRoutes method ? What is the goal of the life ?
    42 ? I feel that i become crazy... &lt;X<span class="Apple-style-span" style="border-collapse: separate; font-family: Times; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium; "></span><br>
    <br>
    Thanks for your help. <br>
    best regards<br>
    Olivier ;-)<br>
    <br>
    <a class="moz-txt-link-abbreviated" href="http://www.auverlot.fr/">www.auverlot.fr</a><br>
  </div>

_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></div><br></div></div></body></html>