[Seaside] REST - How to do step 6?

Philippe Marschall philippe.marschall at gmail.com
Mon Apr 11 15:20:55 UTC 2011

2011/4/10 Peter Kwangjun Suk <peter.kwangjun.suk at gmail.com>:
> On Sun, Apr 10, 2011 at 2:36 AM, Philippe Marschall
> <philippe.marschall at gmail.com> wrote:
>> When you subclass WARestfulHandler and implement #createRoutes you
>> can't use pragmas. To find out what goes wrong set a break point in
>> WARestfulHandler >> #handleFiltered:.
> On Sat, Apr 9, 2011 at 2:40 PM, Tobias Pape <Das.Linux at gmx.de> wrote:
>> Do it like
>> (WAAdmin
>>        register: WAMySomethingComponent
>>        at: 'component)
>>        addFilter: WAMyClassREST
> Is there documentation on using the pragmas?


> Actually, I'll defer on
> that for now.  I should interpret the above as:
>        (WAAdmin
>                register: WAComponentMySubclass
>                at: 'component)
>                addFilter: WARestfulHandlerMySubclass
> My method that returns the JSON text should be on the
> WAComponentMySubclass, but the WARestfulHandlerMySubclass is the part
> that redirects the rendering of the URL path to the component?

First WARestfulHandlerMySubclass gets a chance to handle the request.
If nothing matches it delegates to WAComponentMySubclass. Where to put
the method depends on whether you need to access the session and
continuations or you want a constant URL.


More information about the seaside mailing list