Memento don't work on my component when clic on cancel button

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

Memento don't work on my component when clic on cancel button

dtrussardi@tiscali.it
Hi All,
 
i work with Squeak and Magritte.
 
I have create my personal component "SUAddress"  subclass of MAElementComponent.
 
And define the relative MAAddressDescription subclass of MAElementDescription with methods:
    kind                                     ^ OrderedCollection
    defaultComponentClasses     ^Array with: SUAddress
 
After i define in TestClass with:
                              descriptionAddress based on MAAddressDescription on   addressData
                                 and descriptionText  based on MAStringDescription on    textData.
 
 
Now when call: anTestClass asComponent addValidateForm; addMessage: 'message' ; yourself all work fine.
 
 
The problem is when in the form  i do change on my component and after  i clic the cancel button.
 
In this case the addressData result update to the change do in the form, and not to the last correct state.
The textData in this case work fine.
 
 
Where i wrong ?
Any pointers would be greatly appreciated!

Thanks!

Dario


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Memento don't work on my component when clic on cancel button

Lukas Renggli-2
> In this case the addressData result update to the change do in the  
> form, and not to the last correct state.
> The textData in this case work fine.

Since you are working with composed objects, I guess your issues come  
from the Mementos that cache the state of the objects edited. Though,  
it is hard to tell from your mail what the actual problem is.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki