I've re-factored an application to Flex2 B2 and Cairngorm2 (similar 
code structure to the Store and Login samples).  The question that I 
have concerns showing an Alert message in response to a Fault event 
that is returned from a Delagate.  I was wondering if anyone would 
suggest a best practices solution.  Ideally, as is the case in the 
Store sample, a Command would show an Alert after receiving a Fault 
event from a Responder that handles a Delegates' event.  However, it 
appears that the latest beta no longer allows Alert.show in packages 
(only allowed in an MXML component/view?)  If I'm wrong here my 
problem would be solved.  If not, I'm trying to determine the best 
way to communicate back to the ViewHelper that dispatched the 
initial Cairngorm Event.  I suppose that I could add event listener 
and dispatch statements all of the way from the ViewHelper to the 
CairngormEvent to the FrontController to the Command to the Delegate 
to the Service (last three already listening).  But I don't want to 
stray too far from the Cairngorm architecture.  Or perhaps, I could 
have the Command update an errorMessage variable, in the 
ModelLocator, that is bound to an invisible textInput control.  I 
could then show the Alert when the textInput control issues a change 
event in response to the updated Model.  I'm not even sure if this 
would even work and it seems like a very sloppy approach.  Before I 
start hacking away at this, I thought that I would go ahead and ask 
for some advice.  Any help would be greatly appreciated.

Thanks,
Tim Hoff
[EMAIL PROTECTED] 









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to