Greetings,
I have built a component called "VeComponent", with an embedded
Magritte component. The code for rendering looks like:
VeComponent>>renderContentOn: html
html render: self model asComponent addValidatedForm; yourself.
html submitButton callback: [self answer: someValue];
text: 'Done'
To test this code I call it from aWATask like this:
go>>
returnValue := self call: aVeComponent.
self halt.
This works, I get to the halt.
If I embed aVeComponent in another component then it appears that the
"self answer: someValue" in VeComponent>>renderContentOn: does not work.
What I observe is that clicking on the 'Done' button results in the
re-displaying of aVeComponent.
How is it that the code works when called from aWATask but it does not
work if it is contained in another component?
Can anyone explain what I am doing wrong?
Many Thanks,
Frank