« Return to Thread: Strugging with Commands

Re: Strugging with Commands

by Keithy :: Rate this Message:

Reply to Author | View in Thread

A simpler solution:

PRContentsWidget-buildComponent: aContext
    ^ aContext command asComponent
        onAnswer: [ :value | self onAnswerCommand: (aContext command
onReturn: value) ];
        yourself

PRCommand-onReturn: value

^ value

This gives commands an opportunity to handle the form's reply, returning
a command for the PRContents widget to #execute.

I think this is a better solution.

Keith

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

 « Return to Thread: Strugging with Commands

LightInTheBox - Buy quality products at wholesale price