[Seaside] embedding a MewaEditorVisior

Patty Gadegast peppermint-p at web.de
Wed Nov 22 20:15:07 UTC 2006


Hi Lucas,

but now every time I click on the save button the session is not valid 
anymore (message this page has expired is displayed)...

Patty

Lukas Renggli schrieb:
> Hi Patty,
>
>> the addEditor is defined in the initializeMethod:
>>     newObject := Object new.
>>     addEditor := (MWEditorVisitor model: newObject)
>>
>> How does my editor notices that the save action is done in my Editor
>> visitor. I think I need to apply an action but I don't know how. And is
>> this way to embed the EditorVisistor right anyway?
>
> you can catch the #answer: of a component by using the method
> #onAnswer:. As far as I understand your problem you need to add the
> following code to your initialize method:
>
>      addEditor onAnswer: [ :object | ... ].
>
> Into this block you get passed in the modified object that you can
> then use to update your view. At least this is how I expect Mewa to
> work, I don't know the details.
>
> Cheers,
> Lukas
>



More information about the Seaside mailing list