[Seaside] magritte - processing after pressing 'save'

Lukas Renggli renggli at gmail.com
Sat Mar 6 22:52:26 UTC 2010


> should i just overload the InterestPoint 's 'save' method? this
> doesn't seem to be working..

The Magritte component answers the edited object when you save, or
answers nil when you cancel. So you can attach an #onAnswer: handler
like this:

    component := aModel asComponent.
    component onAnswer: [ :model |
         model isNil
             ifTrue: [ "the user hit cancel" ]
             ifFalse: [ "the user hit save" ] ]

Lukas

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


More information about the seaside mailing list