Spec: replace sub-widget

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Spec: replace sub-widget

Sean P. DeNigris
Administrator
I have a ComposeableModel, which contains another ComposeableModel:
        self instantiateModels: #(
                flashCardModel FeFlashCardUI).

I want to refresh child and update the parent.

Before doing "self buildWithSpec",
- Replacing the child's model works: "flashCardModel model: self newFlashCard."
- But replacing the whole child doesn't work: "flashCardModel := self newFlashCardUI."

Why? What's the right way to handle this? Thanks.
Cheers,
Sean