There has to be a nice pattern for this but I just haven't seen it yet. I have a simple dialog that allows a user to change data. I want the dialog to be...
Okay I found http://www.cairngormdocs.org/cairngormDiagram/index.html which talks about model objects which show a pattern for putting status and an isPending ...
I can't remember where I found this, but I've been using a "ViewDispatcher" and a "ViewController" in my applications. What the Dispatcher does is take a...
I have been meaning to look into the UM extensions but when I have a view that needs to know about the result of a command I generally create an (optional)...
What I usually do when I need my view to react to a result event, I pass a model to my event, which is stored in the command and the result/ fault updates that...
ChangeWatcher is one approach. Here's another: http://code.google.com/p/flexcairngorm/ The UM extensions contain view notification functionality. It's not very...
I am doing the same. The view creates the ValueObject and holds the instance as a private variable and can bind to a pending or result property in the...
I am just curious why all of the extra bindings and other solutions. Admittedly I haven't really been following this post completely so I may be missing...
Hi Eric, How do your views register for those events though? It sounds like your Command would trigger the dispatching of an event from your event? The UM...
Hey, in our Flex project we use the ObserveValue method to have the view respond to asynchronous events. We do it like this: 1) Add to the model a status...
Hi Ian, The problem with that solution, in my opinion, is that myRemoteServiceState is not something that belongs on the model. Especially since you need a...
Ben , when I have multiple views that can 'share' the same events / command I use a local model for that view and pass that to the event > command and assign...
Hey Ben, The registering of Events is accomplished just the same as it is throughout Cairngorm - via CairngormEventDispatcher. That's it, plain and simple... ...
I thought the view is driven by the model and databinding. In none of the Adobe consulting examples for Flex 2 have I seen events or commands communicating...
... Personally, I ask "Is this something that needs to be known by more than this view?" If not, I'm inclined to just notify the view. On Sun, May 4, 2008 at...
Steven what's your take on this discussion? How does AC recommend notifying views of a result or fault from a command? I haven't looked into any other...
Eric, So I think one of the design philosophies of Cairngorm has always been to be as lightweight and non-prescriptive as possible; we¹re not trying to turn ...
Hi all, Steven mentioned the Presentation Model, which allows to i.e. unit test view behaviour and view state, which is encapsulated within the Presentation...
Relatively simple. All you need is a result var in the model, and the view bound to that variable. On command result (means success), update the variable to a...
Hi. Why is not there Cairngorm 2.2.1 Online Docs at www.cairngormdocs.org? And may I translate Cairngorm 2.2.1 asdoc into Japanese and upload my site? Thanks....
Good point, uploaded: http://www.cairngormdocs.org/docs/cairngorm_2_2_1/ It would be great to have a version in japanase. I've created a directory for you on...
Has anyone seen any good examples of how to work with REST in Cairngorm? Other than a code generating plugin for Eclipse which hasn't been released yet,...
Don't pass the URL from the command, just have the token inside the actual delegate method call for create. The command only needs to pass the user info on to...