| Author |
A query with respect to Cairngorm Events
|
Ravi Kiran Va
Ranch Hand
Joined: Apr 18, 2009
Posts: 2231
|
|
I am new to cairngorm .
I am designing a StudentApplication using Flex with Cairngorm .
I am struck at writing a Event class for Cairngorm .Please guide me
Assume that this StudentApplication is suppourting Create , Delete , Update ,Read Operations .
My question is do i need to write 4 Event classes , each representing that Operation ,
Or is it possible to do in one Event class by taking 4 different Sring constants , each representing the Appropiate Action .
My question is do i need to make Create , Update , Delete , Read Events for every
Event of my Application ??
Please guide me .
Thanks in advance .
|
Save India From Corruption - Anna Hazare.
|
 |
Ratan Kumar Yadav
Greenhorn
Joined: May 02, 2008
Posts: 6
|
|
Ravi,
It would be better if you create separate event for each of your operations like create,delete,updare etc.
Make sure you map your events in FrontController ,i.e your UIController and write a command class
which will implement ICommand interface.
Once the Event is Dispatched,it vl come wover to command class "execute" method and den you can decide here which operation need to Perform.
Hope I made things simpler....
|
 |
 |
|
|
subject: A query with respect to Cairngorm Events
|
|
|