-
Documentation not clear
Trying to use events as much as I can and trying to model app using springactionscript and using cairngorm 3, what is the equivalent for the following snippet of code in
Code:
[CommandResult]
public function onSaveResult(result:*, event:SaveContactEvent):void
{
status="Contact saved.";
dispatchEvent(new Event(SAVED));
}
[CommandError]
public function onSaveFault(result:*, event:SaveContactEvent):void
{
status="Unable to save contact.";
}
in http://opensource.adobe.com/svn/open...ntactFormPM.as ?
The 'CreateUserCommand' example in springactionscript documentation http://www.springactionscript.org/do...ation_api.html is very unclear, particularly if I need to use EventBus. I mean who calls the execute() for this command? Also how is the result sent to model with reference to above code snippet?