Re: Registering a WARequestHandler

Jupiter Jones <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
Hi Udo,

This is pretty much your solution :)

I added the instance variable ‘key’ to my handler and the setter method MyHandler>>key:
This stops the error in WAApplication>>register: method setting the ‘key’ when calling…

WACurrentRequestContext value registry register: handler.

Then added a #basicURL method to my handler along the lines of the WASession>>basicUrk:

MyHander>>basicUrl
  | url |
  url := self parent url.
  self parent trackingStrategy addKey: key toUrl: url.
  ^ url

Cheers,

J

> On 3 Feb 2017, at 4:30 am, Udo Schneider <[email protected]> wrote:
> 
> Hi Jupiter,
> 
> could you post your code? I ran into a similar problem getting Magritte File Handlers to work and did not quite figure out what you did.
> 
> Thanks,
> 
> Udo

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.