Welcome!

Weblogic Authors: Yeshim Deniz, Elizabeth White, Michael Meiner, Michael Bushong, Avi Rosenthal

Related Topics: Agile Computing, Machine Learning

Agile Computing: Article

AJAX World - HTML & AJAX, Rails and Grails, Flex, Silverlight, Curl, GWT, OpenLaszlo, and Appcelerator

Which RIA Tools Give Us the Best Bang for Your Buck?

Kevin Whinnery's Blog

In the world of Rich Internet Applications, there is no shortage of technology choices to compose a user interface. But what tools will give us the best bang for our buck? Here is a look at some heavy hitters and newcomers in the RIA market, including: HTML & AJAX, Rails and Grails, Flex, Silverlight, Curl, GWT, OpenLaszlo, and Appcelerator.

When you set out to build any application, difficult decisions must be made about the frameworks and technologies you will employ to get the solution built.  In the world of Rich Internet Applications, there is no shortage of technology choices to compose a user interface.  Within reason, any technology can be used to create any kind of user experience - just ask the JavaScript wizards at Google or 37signals

But not everybody has that kind of talent (or time and resources) at their disposal, so the rest of us have to decide what level of user interface quality we are gunning for, and what tools will get us there the fastest with an end product that is maintainable (read: what tools will give us the best bang for our buck).

This is a question I grapple with often, and I took a few minutes (brace yourself for some outstanding MS Paint skills) to sketch out where I think some heavy hitters and newcomers in the RIA market stand when the complexity of the solution is compared to the overall feature-richness of the UI:

Graph Plotting Complexity vs Feature-Richness of the UI

From my experience, a traditional HTML + Ajax application can create great results, but maintaining even a modest JavaScript codebase with intermediate level JS programmers is a total nightmare.  Successful JavaScript-heavy apps require a very talented team to develop and maintain them, and even then, the tools are only now coming around to a point where that kind of effort is productive.  So applications built on standard MVC-ish frameworks (Struts, Ruby on Rails, Grails, Spring Web Flow) get complicated (and expensive) fast depending on how much client-side programming is necessary.

But at the lower levels of UI complexity, those frameworks offer some great value, especially Rails and Grails. When an application's content consists largely of dynamically generated documents, HTML and AJAX can generally get the job done nicely.  After all, displaying documents is what HTML is all about.

But as requirements call for a more expressive UI (which requires more client-side logic to be written), the old way of writing web applications breaks down quickly.  The browser was never intended to function as an application platform, and it starts to show as an application requires more asynchronous data access, fluid and responsive control, and event-driven user interface. To counteract the stateless nature of the web, we start to invent contrivances like "page flow" and abuse the HTTP session.  We find that our runtime environment on the client is not consistent because of the different browsers in the marketplace, not even between versions from the same vendor.  It is at this juncture that we reach the breaking point of the browser as a means of creating application UI (marked at point A on the graph).

At this point it becomes clear that we need to move away from the server-centric programming model we are used to on the web to more of a client-server architecture.  To effectively create advanced user interfaces we need to be able to track UI state on the client side and make our UI event driven.  At first, it seems inevitable that we leave behind the open, standards-based world of the web (and all our hard-earned skills surrounding it) for a more consistent runtime environment, like the Flash player (using Adobe Flex), Microsoft's upstart Silverlight platform, or some other more exotic solution, like the B2B-targeted Curl platform.

But before abandoning the browser, we still have options.  A number of emerging frameworks seek to tame the browser and make it a suitable platform for a rich client application.  The biggest fish in this pond is currently Google Web Toolkit (or GWT), which allows developers to write UI code in Java and have it transformed to JavaScript that will run in the browser.  All this with all the development tools and skill sets that exist out in the marketplace today surrounding Java. Sounds great doesn't it?

It sure did to me, until I started to actually write a UI in straight up procedural Java.  I was shocked at the volume of code I had to write to assemble even the most basic UI.  Also, trying to read a collection of Java classes and visualize the structure of the UI was, for me, not an easy task. On top of that, it was unclear to me how a design team would effectively collaborate with a development team, especially when they are speaking different programming languages (Java versus HTML/CSS).  The lack of any kind of markup language to accompany Java in GWT hurts it badly - and the alpha-stage markup language extensions that I see coming out seem all too far away.

OpenLaszlo is an option, as LZX can be compiled into DHTML/JavaScript for the browser, but it carries with it all the new language overhead of Adobe Flex, without all the nice features like a polished set of widgets out of the box and seamless design to development workflow via Adobe CS3.  Yes, it does run in the browser without a plugin, but it's going to run a ton slower than the same application written for the Flash Player.  Overall, I see few advantages to choosing OpenLaszlo over Flex.

But as you can probably tell from the graph, I think there is a worthy competitor in the 'RIA for the browser' struggle in Appcelerator.  Appcelerator pushes the browser beyond Ajax by providing a client-server programming model and providing event-driven UI.  It accomplishes this through what I categorize as a brilliant innovation, which is its Web Expression Language and messaging system.  Lightweight messages and JSON data payloads govern communication between elements on the page and server-side services alike. Data marshalling and unmarshalling is accomplished by the framework, which saves a common point of tedium in RIA development.  Appcelerator also uses HTML and CSS to structure UI, so your designers and developers can work in concert as before.  Appcelerator pushes the breaking point of the browser out even further (I marked this at point B on the graph above), because it provides you with the essentials for developing a rich client without abandoning the browser as an application platform.

But there comes a point where user interface requirements demand more than can be provided by the browser (at least easily).  When an application UI demands the use of diverse media sources, advanced animation, top-quality client side performance, and retrieving and working with many thousands of rows of data, the browser simply cannot perform as well as the Flash Player plugin, which means programming in Adobe Flex and ActionScript 3.  AS3 is a powerful, strongly-typed object-oriented language that provides you all the related advantages. It is also compiled and run as byte code in the Flash Player, so it will often provide client side performance advantages over JavaScript (which is of course interpreted). There is also support for a binary data transfer protocol that is the fastest way I know of to get data into the browser. Last but not least, designers can achieve pixel-perfect results by using CS3 creative tools to create Flex UI components.

All this power comes at a price, however.  The tool set is not cheap, and Adobe Flex skill sets are not exactly abundant in the marketplace.  The event system is nowhere near as elegant as the Appcelerator solution, and the syntax of MXML/ActionScript can get a little verbose.  You are also relying on a browser plugin, and while the Flash Player's penetration is deep, I have already come across clients where Flash Players are not installed on modern machines.  Some corporate environments may even prohibit browser plugins.

But Flex, for my money, is hands down the most powerful option for creating RIA on the web today.  I would consider it a 'nuclear option' reserved for graphically intense, data-access intensive, or desktop-like UI requirements, but when you need to break out the big user experience guns or take advantage of the high-speed AMF protocol, Flex is going to be your weapon of choice.

So there you have another lengthy teatise on the state of the RIA union.  With any luck it will be my last truly lengthy one for some time.  I look forward to any comments, and good luck to any embarking on a new RIA adventure...



AJAXWorld 2008 West Call for Papers Is Open!

Submissions deadline: May 31, 2008

Next October's Conference is already receiving higher-caliber submissions from all over the Rich Internet Applications ecosphere.

The theme of this October's AJAXWorld Conference & Expo 2008 West is 'Beyond AJAX to the RIA Era' and the Call for Papers, which is now open, specifically encourages submissions from exceptional speakers with high-quality use cases of the fast-emerging RIA alternatives.

Submissions featuring such use cases as well as on dozens of other RIA topics have already begun streaming in to AJAXWorld Conference & Expo 2008 West, being held in San Jose, CA, on October 20-22, 2008.

Click here to submit your speaking proposal today !

More Stories By Kevin Whinnery

Kevin Whinnery is a core contributor and Technical Evangelist for Appcelerator, an open source Rich Internet Application framework. Prior to joining Appcelerator, Kevin has been a web developer on both the client and server side for ERP vendor Lawson Software and technical consultancy Perficient, Inc. Kevin is also the author of the upcoming book "Appcelerator In Action" from Manning Publications.

Comments (11) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
robbiecheng 07/18/08 12:47:05 PM EDT

How about ZK? It's a pure Java, and direct Ajax solution. ZK was the most downloaded Ajax framework on Sourceforge last year. Moreover, ZK also support JSF, Seam, and JSP. Take a look at a comparison between ZK and GWT. Understand why ZK outdoes GWT. http://www.zkoss.org/smalltalks/gwtZk/

robbiecheng 07/18/08 12:39:47 PM EDT

How about ZK? It's a pure Java, and server-centric solution. ZK was the most downloaded Ajax framework on Sourceforge last year. Moreover, ZK also support JSF, Seam, and JSP. Take a look at a comparison between ZK and Icefaces.
http://www.zkoss.org/smalltalks/zkIcefaces/

Meryl 05/23/08 11:30:30 AM EDT

What about WebWidgetry from Nth Penguin?

Kevin Whinnery 05/05/08 04:20:42 PM EDT

This definitely isn't an exhaustive list of options - there are some other good RIA tools out there certainly.

Assuming you're using Java on the backend, ICEFaces is certainly an option, but the jury is still out even in the Java community as to the utility and desirability of JSF in general. Also, it doesn't really provide the client/server programming model I like in an RIA - it still requires you to maintain UI state on the server.

JackBe and Kapow are neither free nor open source (near as I can tell), however both products look like they are pretty powerful. I like Backbase - it feels a bit like Flex to me, and the component library is pretty extensive.

But in terms of RIA for the browser, I like Appcelerator more because of it's elegant web expression language and messaging/event handling system. No similar facilities exist in any other Ajax toolkit I have encountered. Along with support for tight integration a variety of server-side backends, I have yet to see a browser-based RIA framework with similar capabilities to Appcelerator, which is why I like it so much and included it in this list.

Matthew Quinlan 04/29/08 02:14:32 PM EDT

Brandon,

Regarding your moible question...
Appcelerator runs out-of-box on the iPhone.

RIA in Europe 04/28/08 11:40:34 AM EDT

JackBe, Backbase and Kapow are gone or what?

Juan Mendoza 04/15/08 07:28:37 PM EDT

Yes, i agree too, it is a very interesting article, but what about ICEFace?

Tristan Bergh 04/15/08 06:40:42 AM EDT

Great article. Choosing Web UI framework technology is a crucial step in any enterprise internet strategy and your analysis gives a great first pass for me, an architect returning to the UI game after serverside-only work. I'm comfortable I can navigate further with the decision points you use.

NN 04/15/08 12:41:04 AM EDT

yeah after working GWT I feel Flex is best of all RIA at this time given two things

1. Data access server not free
2. Flex Builder cost you but not very expensive
3. that plug-in things makes client think twice or thrice or so no all together

But JSP, PHP, JSF & other server side tag language feels like age old technology and feels like not working on them after Flex 3 and so open source initiative by Adobe...

Microsoft and SUN (JavaFX not even clost to 10% to flex) makes big statement but delivery buggy (goes to microsoft) or over engineer product (goes to SUN)

Brandon 04/12/08 06:34:57 PM EDT

A wonderful and very useful summary! I am on the cusp of jumping into RIA dev since Adobe AIR has caught my attention (a new ripple that you might consider adding to this analysis).

Although it may be beyond the scope of your purpose, I'd also be extremely interested in RIA tools which support mobile devices. Can of worms? You bet. It is also an inevitable tsunami.

Jorge Duenas 04/12/08 05:09:16 AM EDT

Excellent, very informative article - thanks!

@ThingsExpo Stories
High-velocity engineering teams are applying not only continuous delivery processes, but also lessons in experimentation from established leaders like Amazon, Netflix, and Facebook. These companies have made experimentation a foundation for their release processes, allowing them to try out major feature releases and redesigns within smaller groups before making them broadly available. In his session at 21st Cloud Expo, Brian Lucas, Senior Staff Engineer at Optimizely, will discuss how by using...
In this strange new world where more and more power is drawn from business technology, companies are effectively straddling two paths on the road to innovation and transformation into digital enterprises. The first path is the heritage trail – with “legacy” technology forming the background. Here, extant technologies are transformed by core IT teams to provide more API-driven approaches. Legacy systems can restrict companies that are transitioning into digital enterprises. To truly become a lead...
SYS-CON Events announced today that CAST Software will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CAST was founded more than 25 years ago to make the invisible visible. Built around the idea that even the best analytics on the market still leave blind spots for technical teams looking to deliver better software and prevent outages, CAST provides the software intelligence that matter ...
SYS-CON Events announced today that Daiya Industry will exhibit at the Japanese Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Ruby Development Inc. builds new services in short period of time and provides a continuous support of those services based on Ruby on Rails. For more information, please visit https://github.com/RubyDevInc.
As businesses evolve, they need technology that is simple to help them succeed today and flexible enough to help them build for tomorrow. Chrome is fit for the workplace of the future — providing a secure, consistent user experience across a range of devices that can be used anywhere. In her session at 21st Cloud Expo, Vidya Nagarajan, a Senior Product Manager at Google, will take a look at various options as to how ChromeOS can be leveraged to interact with people on the devices, and formats th...
SYS-CON Events announced today that Yuasa System will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Yuasa System is introducing a multi-purpose endurance testing system for flexible displays, OLED devices, flexible substrates, flat cables, and films in smartphones, wearables, automobiles, and healthcare.
SYS-CON Events announced today that Taica will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Taica manufacturers Alpha-GEL brand silicone components and materials, which maintain outstanding performance over a wide temperature range -40C to +200C. For more information, visit http://www.taica.co.jp/english/.
Enterprises have taken advantage of IoT to achieve important revenue and cost advantages. What is less apparent is how incumbent enterprises operating at scale have, following success with IoT, built analytic, operations management and software development capabilities – ranging from autonomous vehicles to manageable robotics installations. They have embraced these capabilities as if they were Silicon Valley startups. As a result, many firms employ new business models that place enormous impor...
SYS-CON Events announced today that SourceForge has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. SourceForge is the largest, most trusted destination for Open Source Software development, collaboration, discovery and download on the web serving over 32 million viewers, 150 million downloads and over 460,000 active development projects each and every month.
SYS-CON Events announced today that Dasher Technologies will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Dasher Technologies, Inc. ® is a premier IT solution provider that delivers expert technical resources along with trusted account executives to architect and deliver complete IT solutions and services to help our clients execute their goals, plans and objectives. Since 1999, we'v...
As popularity of the smart home is growing and continues to go mainstream, technological factors play a greater role. The IoT protocol houses the interoperability battery consumption, security, and configuration of a smart home device, and it can be difficult for companies to choose the right kind for their product. For both DIY and professionally installed smart homes, developers need to consider each of these elements for their product to be successful in the market and current smart homes.
SYS-CON Events announced today that MIRAI Inc. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MIRAI Inc. are IT consultants from the public sector whose mission is to solve social issues by technology and innovation and to create a meaningful future for people.
SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of...
SYS-CON Events announced today that TidalScale, a leading provider of systems and services, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale has been involved in shaping the computing landscape. They've designed, developed and deployed some of the most important and successful systems and services in the history of the computing industry - internet, Ethernet, operating s...
Widespread fragmentation is stalling the growth of the IIoT and making it difficult for partners to work together. The number of software platforms, apps, hardware and connectivity standards is creating paralysis among businesses that are afraid of being locked into a solution. EdgeX Foundry is unifying the community around a common IoT edge framework and an ecosystem of interoperable components.
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, will discuss how from store operations...
In a recent survey, Sumo Logic surveyed 1,500 customers who employ cloud services such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). According to the survey, a quarter of the respondents have already deployed Docker containers and nearly as many (23 percent) are employing the AWS Lambda serverless computing framework. It’s clear: serverless is here to stay. The adoption does come with some needed changes, within both application development and operations. Tha...
SYS-CON Events announced today that IBM has been named “Diamond Sponsor” of SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California.
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, will lead you through the exciting evolution of the cloud. He'll look at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering ...
Infoblox delivers Actionable Network Intelligence to enterprise, government, and service provider customers around the world. They are the industry leader in DNS, DHCP, and IP address management, the category known as DDI. We empower thousands of organizations to control and secure their networks from the core-enabling them to increase efficiency and visibility, improve customer service, and meet compliance requirements.