Comments
ebresie wrote: I wonder if another thing to look at is Oracle's acquisition of Berkeley DB (for more details see Wikiipedia and here some time back. It appears to continue to be developed.

"Mass psychology" scientists study this kind of ph...


ADS BY GOOGLE
Blog-N-Play.com
Anytime a feature of a framework gives me something for free that I don't need to manually implement I'm a happy camper. One such feature of ASP.NET MVC 2 is jQuery client-side validation. The
Flex Top Links You Must Click On !


Using the J2EE View Helper Pattern in Your AIR Applications
I'm creating many small prototype applications using AIR and Flex 3

Marco Casario's "RIAvolutionize the Web" Blog

I'm currently creating many small applications using AIR and Flex 3. Most of them are prototypes with the purposes of showing AIR features and the quantity of code is small (600 lines at most).

In this context it does not make much sense to use a framework or architecture such as Cairngorm or PureMVC or Defraga. So that I'm using a lot what in JSP is called the View Helper pattern.

The view components of your  AIR and Flex   applications, that will only contain the controls that define the user interface of the application,  will use a simple View Helper, consisting in an ActionScript class, to encapsulate business logic in a helper instead of a view, making our application more modular by facilitating component re-use.

A view contains formatting code, delegating its processing responsibilities to its helper classes, implemented as an Actionscript class. Helpers also store the view's intermediate data model and serve as business data adapters.


View  helpers has the following advantages:

  • improve the separation between the presentation and the business data actinga as intermediaries between the two
  • most of the code contained in a view components is merely mxml code
  • the code within the view components are more readable and a designer can browse and edit it to change the visual aspects of the application in an easy way
  • it can cache lookup tables for the application

To invoke a view helper you can simply

<h:UploadHelper id="uploadHelper" xmlns:h="com.comtaste.proto.controls.*" />

and the view helper UploadHelper class is an ActionScript class where you'll  encapsulate the business logic of view component :

package com.casario.proto.controls
{
import flash.events.Event;
import flash.events.IOErrorEvent;
import mx.controls.Alert;

public class MainHelper
{

protected var URLString:URLRequest =
            new URLRequest("http://www.domain.com/file.jsp");

[Bindable]
private var statusStr:String = new String("");


public function MainHelper()
{
super();

}


}
}

If you want to have more details and ivestigate on this pattern you can visit the View Helper  Design Pattern of J2EE.

About Marco Casario
Marco Casario is CEO of Comtaste, a company devoted to develop Rich Internet Applications on the Web and for mobile devices.

He collaborates intensively with Adobe Italy as a speaker at conferences and as a consultant for Flash, Flex, and Flash Lite.

Learn more about Marco Casario at his blog http://casario.blogs.com. In 2005, Marco has founded Comtaste, a company dedicated to exploring new frontiers in Rich Internet Applications and the convergence between the web and the world of mobile devices — MobyMobile and YouThru are representative of their recent work. He is founder of the biggest worldwide Flash Lite User Group and of www.augitaly.com, a reference point for the Italian community of Adobe users, in which he carries out the role of Channel Manager for the section dedicated to Flex.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

  Subscribe to our RSS feeds now and receive the next article instantly!
In It? Reprint It! Contact advertising(at)sys-con.com to order your reprints!
Featured White Papers
Latest Flex Stories & Posts
SYS-CON Events announced today that Adaptivity, the IT transformation company, has been named "Platinum Plus Sponsor" of SYS-CON's 5th International Cloud Computing Conference & Expo (www.CloudComputingExpo.com), which will take place on April 19-21, 2010, at the Jacob Javits Conventio...
“Social media shouldn’t be a specialty in PR but a standard,” said Rachel Herrscher, Co-Founder, CEO & Publisher of Today’s Mama. “People view social media and PR in different brackets and, in some instances, different agencies. It’s time for social media to be considered mainstream me...
In the midst of significant growth in interest and usage of online computing in government, Focus Washington's Karen Hanretty interviewed Kumar Vora, Vice President and General Manager for LiveCycle at Adobe Systems Incorporated, as part of Focus Washington's TechView series. They disc...

 

Abstract

There are many different types of command line options that programs need to recognize. Many languages (e.g.: bash and perl) has built-in processing of command line options; Java does not. The Java Command Line Options (JCLO) package performs this task for a va...

They discussed cloud computing, transparency, and Adobe's approach to this key aspect of the government market. A phenomenon born out of the connectivity of the Web, cloud computing can help address key challenges such as making it easier for government to interconnect systems, share d...
This from the Windows Blog: “An inaccurate quote has been floating around the Internet today about the design origins of Windows 7 and whether its look and feel was “borrowed” from Mac OS X. Unfortunately this came from a Microsoft employee who was not involved in any aspect of designi...
Subscribe to the World's Most Powerful Newsletters

Developer Links You Must Click On !
SYS-CON Events announced today that Adaptivity, th...
“Social media shouldn’t be a specialty in PR but a...
In the midst of significant growth in interest and...

 

Abstract

There are many different ty...

They discussed cloud computing, transparency, and ...
This from the Windows Blog: “An inaccurate quote h...
SYS-CON Events announced today that the "Diamond" ...
Adobe put out this press release - well, kinda, it...
There are about 250,000 developers working with Fl...
CIO and CTO salaries will see a spike of 12.5% in ...
The rise of RIAs and cloud computing, and the incr...
Adobe is cutting another 680 full-time jobs worldw...
TechCrunch is reporting that 9% of Adobe's workfor...
In recent days, there has been increase in virus a...
HFS Wrapper is a popular and reliable Mac OS X fil...
Adobe Systems Incorporated (Nasdaq:ADBE) today ann...
Hosting.com, the leading provider of managed hosti...
So what do you really look for in an interface eng...
A new search site is in beta called DeepDyve that ...
By Tom Hopkins In business situations, when you a...
ADS BY GOOGLE
Product Reviews
If you still can not adopt reading books from your computer screen, or do not like to waste your laptop battery charge for just reading a book, then I think Amazon K...
This article is the first of two that will look at some of the challenges faced by developers and non-developers who work with PDF technologies and who are curious a...
The goal of this article is to give you a brief overview of some of the objects from clear.swc, which is a part of the open source Clear Toolkit Flex framework avail...
Live Cycle Data Services is an excellent solution for building scalable RIA, but it’s not cheap. For those who don’t have a budget for LCDS, Adobe has released open...
I'd like to share with you my experience of working with LiveCycle ES 8.2. This strong player in the BPM space version has been released in July of 2008.