[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



-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


More information about the Aida mailing list