Lukas> ... addValidatedForm: #( save cancel done
)
Lukas> Now you need to add #done as an extension method to
Lukas> MAContainerComponent to #answer: something meaningful. It's
not that
Lukas> nice, but it works ;-)
This is where I had wished that the form stuff would be pluggable
instead of
only being able to be extended by subclassing.
I am not using subclassing. I am talking about pluggability through
method extensions ;-)
Did you consider a pluggable
strategy here, and rejected it for some other reason? The notion of
subclassing just to get a slight variation still tweaks me somehow.
Maybe
it's just a quirk I need to get over... :)
One of the design goals of Magritte was, not to have blocks
everywhere. I guess in this case that got a bit too far. It would make
sense to tell the decoration:
aFormDecoration
on: 'Done' do: [ :answer | self inform: 'done' ]
I will have a look later tonight if that could be done easily. Or
maybe you are faster to implement something like this?
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch