I'm using Cairngorm and I'm stuck at the following "issue":
I have a login Panel, when I click the login Button my
CairngormEvent dispatches and my LoginCommand gets the result. Well
now I have a positive login result and how do I make
Application/View go to the next step, because what I've learned
about Cairngorm is: Command add data to The ModelLocator and Views
access data at the ML.
And now? What should I do? What is "correct" in the Cairngorm
What we do from time to time is create CairngormEvents that
never get picked up by commands. The view just listens to the
CairngormEventDisptacher directly and does something when it hears
the correct event fire. So, for instance, in your situation, your
login command might dispatch a "LoginSuccessful" event from
CairngormDispatcher, and when the view listening for it, switch to
your next view state.