The very hackish part, I now need to add this to
MAContainerComponent
for it to work:
someMore
self call: (AnotherComponent new)
Is there a cleaner way? A bunch of Monticello extensions
on MAContainerComponent hardly seems like the best way to extend
MAContainerComponent's to have more actions!
Sure, this is ment to be used like this. If you don't like this, you
can create your own form decoration that has a different behavior.
I would not override #asComponent thought. #asComponent is ment to
just return the component, without any decorations added. Like this
the user can choose itself what he wants to add. If you have a lot of
code like the one you posted, you might want to create your own custom
converter:
asMyFormComponent
^ self asComponent
addValidatedForm: (Array
with: #save -> 'Save'
with: #cancel -> 'Cancel'
with: #someMore -> 'Some More Stuff')
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch