CairngormStore 2.1 Example November 23, 2006
Posted by Douglas McCarroll in : Cairngorm Code Examples , trackbackCreated by: Andy Rayne (2.0), Renaun Erickson (2.1)
Uses Cairngorm version: 2.1
Supported/maintained by Adobe?: Soon
Find it here. Please do not link directly to this file as this will soon be hosted on Adobe.com.
Update: If you end up with a corrupted zip file, see instructions for downloading an unzipped folder in the comments below.
Note to readers: We (the CairngormDocs community) are using these ‘Cairngorm Code Example’ blog posts as a quasi-wiki for posting examples. What this means is that any and all notes, explanations, comments and opinions relating to this example can be found in this post’s comments. We invite you to contribute!
(Search tag: Flex)
Comments»
It looks like the *.zip file is corrupt; can someone repackage the codebase and update the archive? I’ve tested downloading this on two separate machines, and can replicate the CRC error on each one when I extract the archive. Thanks!
Corruption confirmed
Hi All,
Corruption of the zipped file, once downloaded, seems to be a recurring problem. The file downloads fine for some, some of the time, & at other times we have this problem.
I’ve put a non-zipped version on my FTP site. You can download it from there.
Here’s the FTP info:
Host Address: grant.dreamhost.com
Default Directory: /download.brightworks.com/
User Name: bright_ftp_user
Password: anonymous2
You’ll find a folder there named CairngormStore_2_1_unzipped.
Enjoy.
Douglas
It builds and launches correctly, but just as the app starts y get a “Products could not be retreived” message and I get no data at all, just the UI. Is there any data source configuration required? Maybe the server’s just down at the moment, but I thought I’d ask, just in case somone else experienced the same problem.
BTW, I’m not behind a proxy, firewall, etc.
Thanks!
I launched ok Cairngorm version: 2.1 into my weblogic but I get the same messsage: “Products could not be retreived”
The weblogic console shows:
[Flex] Serializing AMF/HTTP response
Version: 3
(Message #0 targetURI=/3/onStatus, responseURI=)
(Typed Object #0 ‘flex.messaging.messages.ErrorMessage’)
rootCause = null
destination = “productServiceImpl”
headers = (Object #1)
correlationId = “BF0C74F7-1381-69A1-9172-9BE7A83CAAEC”
faultString = “Cannot create class of type ‘com.adobe.cairngorm.samples.store.business.ProductDelegate’.”
messageId = “6EA096CD-501B-D2AA-D798-4E08A81839CC”
faultCode = “Server.ResourceUnavailable”
timeToLive = 0.0
extendedData = null
faultDetail = “Type ‘com.adobe.cairngorm.samples.store.business.ProductDelegate’ not found.”
clientId = null
timestamp = 1.17943669E12
body = null
Have you information about how to fix this problem?
The other two examples worked OK; This one is not.
#1 ] Services.mxml - Could not resolve to a component implementation. [line 39]
#2 ] ShopController.as - 1017: The definition of base class FrontController was not found. [line 47]
#3 ] GetProductsEvent.as - 1017: The definition of base class CairngormEvent was not found. [37]
#4 ] UpdateShoppingCartEvent.as - 1017: The definition of base class CairngormEvent was not found. [38]
#5 ] GetProductsEvent.as - 1020: Method marked override must override another method. [[54]
#6 ] UpdateShoppingCartEvent.as - 1020: Method marked override must override another method. [57]
#7 ] ShopModelLocator.as - 1045: Interface ModelLocator was not found. [47]
#8 ] ProductVO.as - 1045: Interface IValueObject was not found. [39]
=============
I would really like to see this work
Dave
Ok, getting better once I did this:
http://cairngormdocs.org/blog/?p=18 SEE COMMENT #7!
Now it works but says: “Products could not be retrieved!”…. this is when the browser is using :
file:///W:/cfmx7_8500/flex/cairngormStore/bin/Main.html
this is a workaround for “Products could not be retrieved”
http://ntier.wordpress.com/modcairngormstore/
Hello.
I am trying to download Cairngorm Store application from ftp site mentioned by Douglas McCarroll, however, its not allowing me to login through the credentials provided by you.
I am using following user id and apssword:
Host Address: grant.dreamhost.com
Default Directory: /download.brightworks.com/
User Name: bright_ftp_user
Password: anonymous1
Please help.
Thanks
Swati
Swati - I’ve changed the password to anonymous2 - try that - it should work - Douglas
I can’t get this to work, files seems corrupted.
would someone mind to mail it to me at joppert at gmail dot com?
i see the same problem: “Products could not be retrieved”
You just need download cairngorm2.1 from adobe opensource and replace the cairngorm.swc and everything is ok now.
I have a doubt in the application code, why we are writing business logic “addNewElementToCart”, “deleteElement” etc.. in ModelLocator in flex Design Patterns ModelLocator is Responsible for business logic?