Modified Cairngorm Store
The Modified Cairngorm Store is based on the Cairngorm Store (version 2.1).
This release include support for mockups – (no flex data services/java).
Changes made:
1. Added class BaseBusinessDelegateMock – this class is a base class for all business delegate mockups.
2. Added classes ProductDelegateMock (for product fetching) and CreditCardDelegateMock (for credit card validation)
3. changed class GetProductsCommand to call ProductDelegateMock
4. changed class ValidateCreditCardCommand to call CreditCardDelegateMock
5. added a visa credit card number to pass basic mx validation 🙂
After downloading – please rename to *.zip, extract and open readme.txt for more information.
update (22, feb. 2008) : Please check out Douglas McCarrol’s update to the Modified Cairngorm which includes support for Flex 3!
Happy coding,
February 8, 2007 at 18:37 |
Hey Chen, thanks! I’ve been having problems getting the store installed and running (even though I had it working a month ago) and this is a good shortcut.
Douglas McCarroll
February 22, 2007 at 23:09 |
Bless you for this! I’m trying to wrap my mind around Flex and Cairngorm (by playing with the store example, of course) and didn’t want to also tackle the data services and java stuff right now.
Also, I greatly appreciate the fact that you included a readme file with installation instructions.
-Barton
March 10, 2007 at 01:41 |
Hi Chen.
It was a great idea to decouple the sample app from data services that are not really necessary for getting the essense of the framework at the first steps. You made installation and build of it just a breeze. Thanks a lot!
Unfortunately it is not the case with the original CairngormStore project and also with the Cairngorm 2.1 library itself.
I am just wondering if you encountered the same problems bulding the Cairngorm 2.1 as I did.
First it was a build error about the missing folder ‘C:\dev\swat\projects\ac_emea\Cairngorm\buildlib’. That was somehow resolved just by creating this empty folder. I am not sure that this is not a right fix although it eliminates the error message.
After that there was another error message:
1046: Type was not found or was not a compile-time constant:DataService.
Probably you are a couple of steps ahead of me and can share your experience of making a clean build of Cairngorm 2.1?
April 7, 2007 at 04:40 |
I’ll try this out. Thanks Chen.
Serge, I ran into the same build error msg and simply removed that buildlib.
You might already know but you may not need to build the original 2.1, simply put the bin/*.swf from the zip file into a some local directory as a library. Then add this library to the application’s (e.g. webstore) library list. I was able to run the sample web store (almost). It ran but could not load the products so I’m still debugging that ;).
Cheers
April 7, 2007 at 04:48 |
Well, I just tried it out and worked like a charm. Now only wondering why the original store could not load the products. I’m guessing something about my web services not working properly.
Cheers
June 6, 2007 at 18:45 |
Worked GREAT! THANKS.
As a side note, after working thru the examples I do see how it could have pointed to a local XML file to get the data, but I see that you are just populating an array locally. What would help me put it all together is if you could help me figure out how to integrate it with my local ColdFusion Server. If I were to build a replica of the data structure in a Sybase DB that I can get to via CF7, then making the data into XML (similar to the second code box in this example http://www.adobe.com/devnet/coldfusion/articles/integrate_flex.html
). Would I use some kind of RemoteObject or HTTPService ?
July 12, 2007 at 13:33 |
Nice one bro. Works great!
July 12, 2007 at 22:56 |
Actually, I spoke too soon. Strangely, I received an error on startup saying “illegal override in mx.messaging.Consumer”.
If you get this problem, untick Project->Properties->Compiler->Require Flash Player Version. Works great after that (honest!)
September 25, 2007 at 09:26 |
thankyou
this is brilliant. just works for me out of the box so to speak. exactly what I wanted – a simple example of cairngorm
I love you
October 5, 2007 at 01:58 |
Thanks Chen. This is awesome.
I’m not sure I love you as much as James – more of a feeling of deep gratitude.
November 13, 2007 at 21:11 |
Finally, someone with a working version. Thanks so much.
January 31, 2008 at 08:18 |
Thanks. This really helps.
February 22, 2008 at 02:13 |
[…] Bekor performed a real service when he created a modified CairngormStore example that decoupled the application from its data services, replacing them with mock objects, back in […]
February 22, 2008 at 02:18 |
Chen,
I just updated your example for Cairngorm 2.2.1 and Flex 3 and have posted the new version at http://www.brightworks.com/flex_ability/?p=61.
I’ve properly credited you and hope that it meets with your approval. If so, you might want to also allow users to download the file from this post.
I’ll also update the examples listing on CairngormDocs.
Thanks again for creating this example!
Douglas
June 18, 2008 at 14:27 |
Here is a Cairngorm Store which uses HTTP Service to get product.
get the source here.
http://www.zeroboard.com/?module=file&act=procFileDownload&file_srl=16937231&sid=f79ab52da78b2f6d87159c28324f6c3b
September 29, 2008 at 09:46 |
[…] Example :: Uses mock delegates so that you can explore the example with a Java server, etc. :: Cairngorm 2.1 version :: Cairngorm 2.2.1 […]
September 30, 2008 at 11:00 |
[…] that you can explore the example with a Java server, etc. :: Cairngorm 2.1 version :: Cairngorm 2.2.1 […]
September 30, 2008 at 12:16 |
[…] Example :: Uses mock delegates so that you can explore the example with a Java server, etc. :: Cairngorm 2.1 version :: Cairngorm 2.2.1 […]
September 30, 2008 at 12:42 |
[…] Example :: Uses mock delegates so that you can explore the example with a Java server, etc. :: Cairngorm 2.1 version :: Cairngorm 2.2.1 […]
October 14, 2008 at 05:22 |
[…] Example :: Uses mock delegates so that you can explore the example with a Java server, etc. ::Â Cairngorm 2.1 version ::Â Cairngorm 2.2.1 […]
October 14, 2008 at 05:25 |
[…] :: CairngormStore 2.1 :: Modified by Chen Bekor so that it uses stub BusinessDelegates and doesn’t require Flex Data […]
November 24, 2010 at 22:58 |
[…] can also see how Chen Bekor’s has done the stubbing in his example application with the Cairngorm […]
November 26, 2010 at 12:15 |
[…] Original app is this one: 'Modified Cairgorm Store' created by Chen Bekor – which is an example of Cairngorm without using the Presentation […]