I'll be darned. That works!
I am a little baffled that WAComponent>>call: adds an onAnswer: block but that is not enough...I guess I have a bit more to learn =)..
Thank you for your help Lukas.
Warm regards
John
> After further investigations, it does not appear that anything is amiss.I looks like the MAContainerComponent does an answer, but not the
> MAContainerComponent>>save method runs to completion and sends self answer:
> self model. As I step into that send it goes through the decorationDo: [
> :each | each handleAnswer: anObject ] etc. But none of the objects seem to
> handle the answer lol. Can you tell I am a little bit lost?
PersonManager? Is the Magritte Form a child of PersonManager? If so,
you need to pass the answer to the outer component. As far as I
understand your code, it looks like a different component answers than
the one that was called.
So in the PersonEditor where you create the Magritte Component do
something like this:
child := person asComponent.
child addValidatedForm.
child onAnswer: [ :m | self answer: m ]
The last line captures the answer of the Magritte component and lets
the PersonEditor pass it on.
HTH,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki