Have you preferedUrl on instance side of the model domain class?
Example.
AnExample
AnExampleApp
preferedUrl must be on AnExample instance side.
Cheers.
El 18/03/2008, a las 20:43, Leon Smith escribió:
>
> I have only been using AIDA for two days so please forgive me if
> this a
> really stupid question. I have a simple site working following the
> tutorial,
> but using different domain objects; ContestSite and Contests. Both
> have App
> objects with view methods. The ContestSite lists contests in a tabular
> format with links to the underlying Contest object.
>
> I am trying to use preferredUrl to create nice links like this:
>
> preferedUrl
> | aTitle |
> aTitle := self title trimBlanks.
> aTitle := aTitle copyReplaceAll: ' ' with: '-'.
>
> ^'/contest/', aTitle, '.html'
>
> My problem is that my method seems to never get sent. I have stopped
> and
> restarted the server, removed and re-added the site, put halts in
> the method
> and tried implementing the method on both the App and the model
> object, but
> nothing works. Am I supposed to send this message explicitly in
> ContestSite's viewMain ?
>
> Thanks in advance for any help.
> --
> View this message in context:
http://www.nabble.com/preferredUrl-usage-tp16126092p16126092.html> Sent from the AIDA/Web mailing list archive at Nabble.com.
>
> _______________________________________________
> Aida mailing list
>
Aida@...
>
http://lists.aidaweb.si/mailman/listinfo/aida_______________________________________________
Aida mailing list
Aida@...
http://lists.aidaweb.si/mailman/listinfo/aida