Search the web
Sign In
New User? Sign Up
cairngorm-documentation · Cairngorm Documentation Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Best method to handle external functions in the responder   Message List  
Reply | Forward Message #1029 of 1038 |
Re: Best method to handle external functions in the responder

The first link seems to be an alternative method that I was looking for and
might work for me. I appreciate the insight.

Thanks!


--- In cairngorm-documentation@yahoogroups.com, "ionut stoica" <iongion@...>
wrote:
>
> Based on my experience, this subject is one of the biggest wonders when
developing with cairngorm.
>
> On your quest you should check this out:
>
> http://www.thomasburleson.biz/2007/06/cairngorm_view_notifications.html
>
> or as claudiu said, the UM extensions
http://code.google.com/p/flexcairngorm/wiki/ViewNotifications
>
> but for me, these extensions are dead and without any documentation, that
google code project is almost dead.
>
> try to search more for view notifications, this area is one of the reasons i
attempted moving to puremvc (and some other reasons)
>
> In practice, in 99.9% of the cases my commands do only modellocator updates
and the view is bound to values in modellocator, either by direct databinding or
using ChangeWatcher or the Observer tag.
>
> But there are special cases where the comand-responder,
command-delegate-responder pattern is useless, like when doing flash media
server applications.
>
>
> --- In cairngorm-documentation@yahoogroups.com, claudiu ursica <the_braniak@>
wrote:
> >
> > Check the UM Cairngorm extensions. the guys have implemented a notifyCaller
in their version...
> >
> > Haven't used it at least not yet. Usually we do the round trip thing with
the comand calling an unmarshaller which parses the xml result and unpdates the
model. The view is bound to the model so it updates via bindings.
> >
> > HTH,
> > Claudiu
> >
> >
> >
> >
> > ________________________________
> > From: sdl1326 <azsl1326-email@>
> > To: cairngorm-documentation@yahoogroups.com
> > Sent: Tuesday, March 3, 2009 7:21:28 PM
> > Subject: [cairngorm-documentation] Best method to handle external functions
in the responder
> >
> >
> > I am curious to know if there is a best method or practice to handle
functions that need to be called in responder.result once your results have been
received. The functions that need to be executed are typically based in the mxml
component that dispatched the original event. How I have been handling it, is to
have a reference to the function included in the VO payload that is dispatched
to the command/delegate I then pass a reference to the function in an
asynctoken which will be called once the results are received in
responder.result. This works fine for me. However, I am curious to know if it
is the best method in keeping in line with the mvc/cairngorm pattern. I suppose
I could store a reference to the function in the model? I also could set up a
next event sequence in the command class but this seemed like more work than
necessary.
> >
> > Thanks for the insight.
> >
>





Wed Mar 4, 2009 5:29 pm

sdl1326
Offline Offline
Send Email Send Email

Forward
Message #1029 of 1038 |
Expand Messages Author Sort by Date

I am curious to know if there is a best method or practice to handle functions that need to be called in responder.result once your results have been received....
sdl1326
Offline Send Email
Mar 3, 2009
5:21 pm

Check the UM Cairngorm extensions. the guys have implemented a notifyCaller in their version... Haven't used it at least not yet. Usually we do the round trip...
claudiu ursica
the_braniak
Online Now Send Email
Mar 3, 2009
8:47 pm

Based on my experience, this subject is one of the biggest wonders when developing with cairngorm. On your quest you should check this out: ...
ionut stoica
iongion
Offline Send Email
Mar 3, 2009
11:17 pm

The first link seems to be an alternative method that I was looking for and might work for me. I appreciate the insight. Thanks!...
sdl1326
Offline Send Email
Mar 4, 2009
5:29 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help