Jai’s Weblog – Tech, Security & Fun…

Tech, Security & Fun…

  • Jaibeer Malik

    Jaibeer Malik
  • View Jaibeer Malik's profile on LinkedIn
  • Subscribe

  • Feedburner

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 29 other followers

  • Archives

  • Categories

  • Stats

    • 379,210
  • Live Traffic

Tips&Tricks: Flex-Cairngorm-Blazeds-Spring-JPA-Hibernate

Posted by Jai on October 10, 2012

This post includes some of the lessons learned during recent integration and usage of these framework. This is just to help out in case you too fall into these small small problems which may eat of lot of your time.

Cairngorm maven pom dependency entry

<dependency>

<groupId>com.adobe.cairngorm</groupId>

<artifactId>cairngorm-bin</artifactId>

<version>2.2.1</version>

<type>swc</type>

</dependency>

The prefix “mx” for element “mx:Script” is not bound

Either define the namespace xmlns:mx=”http://www.adobe.com/2006/mxml&#8221;

or use this panel in namespace somewhere


Flex declare constant data model

Use <mx:Model

Flex get browser locale

Get locale in using  javascript and pass it to flash as variable args.

i18n support in Flex :

Refer to runtime localization, http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Runtime_Localization

Cairngorm ServiceLocator channel configuration

business/Services.mxml

<mx:ChannelSet id=”myChannelAmf”>
<mx:AMFChannel connectTimeout=”60000″ pollingEnabled=”false” url=”messagebroker/amf” />
</mx:ChannelSet>

Include assets in app:

source-folder/assets

[Embed(“/assets/images/logo.gif” )]

Useful resources:

http://weblogs.macromedia.com/auhlmann/archives/2006/07/cairngorm_sampl_2.html

http://jwopitz.wordpress.com/2008/04/24/tutorial-handling-service-validation-errors-cairngorm/

http://www.agimatec.de/blog/2008/11/selenium-flex-tests-with-maven/

http://www.agimatec.de/blog/2008/11/selenium-flex-tests-with-maven/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: