|
|
YOUR FEEDBACK
SOA World Conference
Virtualization Conference $200 Savings Expire May 16, 2008... – Register Today! Did you read today's front page stories & breaking news?
SYS-CON.TV |
TOP LINKS YOU MUST CLICK ON AJAXWorld News Desk
7 Key Tips to Help You Implement Your RIA Solution Effectively
Effectively Implementing RIAs and Services Using Appcelerator
By: Andrew Zuercher
Mar. 3, 2008 04:00 AM
Digg This!
Tip #1: Achieving Re-useThere are a bunch of ways to do this, personally I leverage app:content files judiciously. You can provide args in the definition of your content files so that you can use the same content file over again. Some things to keep in mind:
here is an example app:content reference
here is the content.html file
I know that this may be abstract, but the point is that you can use the arg “prefix” to reuse the file and provide alternative behavior based on it. Tip #2: Mocking ServicesYou can mock out server side services extremely easily with the framework. This is extremely useful whether your goal is:
Once you have this in place, you have a well defined contract in place which makes knocking out the service implementation a snap. Tip #3: No restartIf you are just working on your application (no service work), you can directly make changes to your application without requiring rebuilding and redeploying your application. In java I typically work directly in my tomcat deploy directory and have an ant task to pull the web files into my workspace. With our next version of the framework coming out, this will be even easier with our support for Jetty coming and the Ruby based command line tool. In the meantime, the following is useful in your java project:
Make sure that you have your deploy.dir setup in your $HOME/.ant.properties for example:
With our Ruby implementation for example, this is even easier (running webbrick directly in your workspace). Tip #4: Great Support for Model ObjectsI’ve touched a bit on this in a previous post on JSON serialization with Appcelerator java services. To summarize the framework enables
Tip #5: Slick support for formsIn case you haven’t looked, you dont need to include a form tag anywhere in the application: simply add a fieldset attribute to your input elements and put something like this
This will create a message of type r:create.person.request with the payload being all your input elements with fieldset of “save_person” ex:
To me, this is very eloquent solution to leveraging form input elements with a messaging architecture. Tip #6: Easy to use UI widgetsI love some of the widgets that are at your fingertips. Some of the ones that i use the most
All these widgets have a very terse usage that is very intuitive. For example, using this set, I was able to knock out a realtime dashboard application in 3 evenings. Tip #7: Service Platform OptionsPitching the right framework is something that varies from project to project. For example, possibly your client wants to leverage an existing java infrastructure and is sold on its robustness for scaling enterprise applications, while on the other side possibly you want to take advantage of using a Rails controller and ORM/Active Record implementation for rapid development. On the same level you also have the option for implementing services to customers that deliver in a .Net solution architecture. Many other platforms also exist (python, PHP) enabling the opportunity to plug into those services as well. The app:get non-visual widget also makes pre-existing services accessible as well and since Messaging is at the heart of the implementation, plugging into an ESB or pure MOM framework is perfectly setup as well.
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 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||