Here is how Cairngorm works!
* Business - Contains the various services for Remote Object calls, Web Service calls, etc
* Command - Handles the formation of the Request/Response of these service calls.
* Control - Here lives the one and only Cairngorm controller class. This is where you map your events to command classes.
* Event - When a user interacts with your super cool app, events are fired off that cause other layout changes based on the user request.
* Model - Holds the data and states for the app.
* View - All datagrids, etc, that make up the user interface.
* Vo - Stores other objects similar to domain that organize data for easy use in the view.
With Penne Framework, you have this!
Get started with Penne
Cairngorm vs. Penne (Comparative Study)
Share & Learn
Monday, May 19, 2008
Cairngorm vs Penne( New Framework for Flex 3.0)
Friday, May 16, 2008
Enabling gzip compression for data services
Brian Deitte on the Flex team wrote up a quick set of classes that can be used to compress your network traffic for all 3 data services (RemoteObject using AMF, HTTPService, and WebService). Dan Schaffer on the QA team then did a number of performance tests to see what kind of improvements we could get.
http://weblogs.macromedia.com/mchotin/archives/data_management/index.html
Wednesday, May 07, 2008
Flex Users Group Meet "Tashan" Mein
This is an update from the meet that we had today, 7th May.
Firstly the reason we had on weekdays as Raghu (Adobe Evangelist) was in pune, we thought it was a good time to just cache in..
MOM:
1. We will be having a meet very soon
2. The event would cater to everyone
3. Start with basics of Flex, that all flex newbies would love
4. 30 Mins of developer related topics
5. 30 Mins of Flash related topics
Overall a package that would not upset anyone, and we will build on this as we go ahead.
Thanks to Raghu once again, he was at his best. After so much of traveling him, hats off Raghu.
Speakers
1. Raghunath Rao - Flex Starter with how easy it is to come from Java/.net/Rails in Flex. And for flash people from CS3 to Flex, showed some examples of Skins. He showed a demo for how to create Data visualization, typically Flex Charts
I will be having a public wiki up and running soon. Read over this soon.
In the next meetings we will follow the developer/flash/newbies pattern. We have started working on the next meet. Yes, we will try to have it on weekends
The first Flex Users Group Team with Raghu, me, Anand. Pics are ausumn
For those who are still not part of the Flex Users group, Please join www.punefug.org
Tuesday, May 06, 2008
Testing Cairngorm Application with DpUint
Hi folks
Recently we were doing lots of Unit testing for our application, we were working on a Cairngorm application. Testing with FlexUnit was not that comfortable (said that, it is a huge asset to have, refer to perter martin's article on Flex Unit).
I have made life easier to the newbies and experts by having a slideshare for Testing cairngorm application with DpUint. I have a TestClass, TestSuite, TestRunner samples. This should get everyone started with DpUnit Testing from Digital Primates. Those guys are really putting some great effort.
So here are the slideshare notes for the above. Do comment/criticize, I don't mind both. Check out the comments text area at the bottom of this page (that's from Disqus).
Sunday, May 04, 2008
Maven with Flex
This one was pending for few days, the objective is to create an auto build process for our flex application. I have put the slides on the slideshare, do comment on that.
Maven is an ausumn tool for Project Management and while Ant is a modular way (Like C) of doing things, Maven can be taken in as an Object oriented way of doing the build process. A detailed explanation in the next post.
Thursday, May 01, 2008
From Photoshop to RIA
Guys Adobe is coming out with their new product called Thermo soon
"Thermo" is an upcoming Adobe product that makes it easy for designers to create rich Internet application UIs. Thermo allows designers to build on familiar workflows to visually create working applications that easily flow into production and development.
Features
* Use drawing tools to create original graphics, wireframe an application design, or manipulate artwork imported from Adobe Creative Suite tools.
* Turn artwork from Adobe Photoshop, Illustrator, or Fireworks directly into functional components that use the original artwork as a “skin”.
* Define and wire up interactive behavior, such as what to do when a user clicks on something, without having to write code.
* Easily design UIs that work with dynamic data, such as a list of contacts or product information, without having access to the actual data source. Design-time sample data can be used as a realistic placeholder when laying out an application, testing interactivity, and choreographing motion.
Applications created in Thermo are Flex applications that can be loaded directly into Flex Builder, providing a great roundtrip workflow for designers collaborating with developers. The designer's work can be incorporated directly into the production application with no loss of fidelity, and designers can continue to refine the design throughout the iterative development process.
Read more about this on labs.adobe.com
Friday, March 21, 2008
Flex and Data service
Hi
lot of "hype" surrounding data services and flex. Issues resolving using blazeds with Jboss. Here is a "quick notes" on BlazeDS and what it does, with configuration details for tomcat and jboss. If you are thinking of securing your RIA application which uses BlazeDS, check the xml files and select the server as jboss and not tomcat( which is set by default)
Tuesday, November 13, 2007
Integrating Flex and Servlets
We will create an application that will read names and profession from a database and display them to the user.
1. Create a Servlet, name it ReadData, and paste the following code under the doGet/ doPost method. Create a DSN for your table (Employee) using ODBC (Control panel => Administrative Tools)
========================================================================
response.setContentType("text/xml;charset=UTF-8");
PrintWriter out = response.getWriter();
String driver ="sun.jdbc.odbc.JdbcOdbcDriver";
String url = "jdbc:odbc:Priyank";
String username = "";
String password = "";
try {
// Load database driver if not already loaded.
Class.forName(driver);
// Establish network connection to database.
Connection connection = DriverManager.getConnection(url,password, username);
String query = "SELECT empid,ename FROM Employee";
String xml = "
Statement stmt = connection.createStatement();
ResultSet rs = stmt.executeQuery(query);
while(rs.next())
{
xml = xml + "
}
xml = xml + "
rs.close();
stmt.close();
out.println(xml);
}catch(Exception e)
{
out.println(e);
}
finally {
out.close();
}
2. Start Abode Flex Builder 2.0. Create a new Project and add an MXML application.
I have kept the code in my code bin(repository for your code) Code
follow the link.
If you guys need any explanation with the code, ping me