|
|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV SYS-CON.TV WEBCASTS |
MXDJ 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
Digg This!
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 LATEST FLEX STORIES & POSTS
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 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||