[Seaside] expanded view of MAToOneRelationDescription

Philippe Marschall philippe.marschall at gmail.com
Wed Jan 2 10:15:19 UTC 2008

2008/1/2, Ch Lamprecht <ch.l.ngre at online.de>:
> Hello,
> playing with Magritte - and with Ramons Blog example
> http://onsmalltalk.com/programming/smalltalk/screencast-how-to-build-a-blog-in-15-minutes-with-seaside/
> (thanks a lot for that), I have the following problem:
> Say I would like to add an instance variable datetime to BlogPost (just an
> example - could be any 'composite'). Datetime would hold 'time' and 'date'
> attributes and have appropriate descriptions for that on its class side. If I
> then add a 'descriptionDatetime' to BlogPost class like:
>         ^(MAToOneRelationDescription
>              selector: #datetime
>                 label: 'datetime'
>              priority: 20)
>                 beRequired;
>                 yourself
> I get a delete and an edit button if I show it like so:
>   BlogPost new asComponent.
> Works fine...
> What would I have to do in order to get an 'expanded' view of my datetime
> instance?? The only way I found was proxying the accessors and descriptions into
> the BlogPost Class...

       ^MAToOneRelationDescription new
            selectorAccessor: #datetime
            label: 'datetime';
            componentClass: MAInternalEditorComponent;
            priority: 20;


More information about the seaside mailing list