I have a pier page that contains two embedded components. The first displays the content
of an object and the second displays a link that when pressed does a call: with an editor
to that object.
If I alter the object in the editor and press save the page below displays the old content
of the object. I think the problem is two fold. The component that displays the object
uses a magritte component for that. As the memento is snapshotting the object it has still
the old values. But pier seems to cache the embedded component (that holds the magritte
component) as well and I didn't figure out so far how it does that.
What would be the best way to invalidate any of the cached things?
thanks,
Norbert
Ok,
don't know why I didn't find the right place before. I discovered the
context->componentDictionary. Now I solved it with doing
self context structure embeddedComponents do:[:each|
(each target = self owner) ifFalse: [
self context componentDictionary removeKey: each]].
at save time. Is there a better way to do?
thanks,
Norbert
On 15.04.2010, at 12:39, Norbert Hartl wrote:
I have a pier page that contains two embedded
components. The first displays the content of an object and the second displays a link
that when pressed does a call: with an editor to that object.
If I alter the object in the editor and press save the page below displays the old
content of the object. I think the problem is two fold. The component that displays the
object uses a magritte component for that. As the memento is snapshotting the object it
has still the old values. But pier seems to cache the embedded component (that holds the
magritte component) as well and I didn't figure out so far how it does that.
What would be the best way to invalidate any of the cached things?
thanks,
Norbert
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki