• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A query with respect to Cairngorm Events

 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 .


 
Greenhorn
Posts: 6
Tomcat Server Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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....
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic