[aida] URL resolver and registering root objects

Janko Mivšek janko.mivsek at eranova.si
Thu Jan 15 15:38:19 CET 2009

Janko Mivšek wrote:

> 3. if above is correct, you should register root object without a problem:
>    (AIDASite named: 'aidademo') urlResolver
> 	registerURL: '/url.html' forObject: myObject

Ops, that's wrong, sorry! Right one is defaultURL:forObject:

     (AIDASite named: 'aidademo') urlResolver
	defaultURL: '/url.html' forObject: myObject

Default URL is there because one object can have more than one URL but 
only one is a default one, which is the URL to be be used in apps when 
you link to that object with #addLinkTo: .

Best regards

Janko Mivšek
Smalltalk Web Application Server

More information about the Aida mailing list