|
SYS-CON.TV Webcasts
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Top Links You Must Click On
Flex News Desk Using the J2EE View Helper Pattern in Your AIR Applications
I'm creating many small prototype applications using AIR and Flex 3
By: Marco Casario
Feb. 27, 2008 09:00 AM
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:
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 Reader Feedback: Page 1 of 1
Enterprise Open Source Magazine Latest Stories . . .
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||