Subclassing MAAdaptiveModel works with the MADescriptionEditor.
However, when I try to get an edit for for my model with "mymodel
asComponent", none of the descriptions appear in the form, not even
the ones that are hard-coded into the class-side. BTW, I have cleared
caches and initialized my model class.
Chad
On 4/19/07, Lukas Renggli <renggli(a)iam.unibe.ch> wrote:
I am creating
a model class that only has a few core attributes and
will allow the user to create descriptions through a description
editor. Is subclassing MAAdaptiveModel a smart alternative to using
customDescription on the class side (as seen in Exercise 18 in
magritte-solutions.pdf)?
Yes, I think that's a good solution.
Sometimes this is not possible, so a stateful trait -- to turn any
class into an adaptive model -- would be a really a cool thing to
have. I basically end up re-implementing the few methods necessary
over and over again.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
Chad Nantais
http://myspace.com/chadnantais
http://www.last.fm/music/Chad+Nantais