Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

ICEfaces Offers a Novel, Pure Java Approach to the Rich vs. Thin Dilemma : Page 2

Fat, thin, fat, thin. As the pendulum of distributed application architecture prepares to swing back toward fat, one vendor offers a thin client solution that uses Java Server Faces to get around tricky HTML and Javascript issues.


advertisement
Understanding Direct-to-DOM
ICEfaces adds this Direct-to-DOM model to the JSF framework. The result is that only elements that change need to be delivered to the client-side and rendered. Changes to the state of the GUI, then, do not require complete page refreshes. This allows for a number of rich features that aren't typically available with standard Web-based apps, including:
  • Asynchronous Presentation Updates
    Using the XMLHttpRequest aspect of AJAX you can set up an asynchronous request that gets a response upon an application state change. When the renderkit gets a new set of nodes to send to the client via the AJAX bridge, the application changes its state based on an external stimulus, asynchronously!
  • Partial Submission and Intelligent Processing of Forms
    The typical Web application only validates user-entered data after submission. This can take time, as well as leading to transactional problems. A rich application is capable of filtering your data in real time—a very desirable feature. With ICEfaces and the Direct-to-DOM model, you can do partial submission of forms to the server. For example, a value entered in a field can be submitted to the server via an AJAX bridge, triggering an application state change and responding with a new definition for the GUI.
To view all of this in action, you can download the early access release of ICEfaces from ICEsoft. It contains WAR files for some examples, which may be easily installed and run on the Tomcat application server.

Figure 2. Server Time Zone Application. The time zone application keeps accurate time and submits user-entered data fields without a full page refresh.
One example (Figure 2) is the Server Time Zone application, which demonstrates many of ICEfaces' features and advantages. Asynchronous updates keep the clicks ticking, and clicking on the checkboxes for the timezones does a partial submit of forms giving you only the rows that you are interested in. This is all built using basic stock JSF components with the ICEfaces framework added-on.



In the download for the product, you'll find a useful tutorial that evolves this time zone application from a standard JSF application through several steps of enrichment using ICEfaces. You'll learn how to:

  • Build the basic JSF application
  • Integrate ICEfaces
  • Use dynamic updates to make the clocks tick
  • Render and update dynamic tables
  • Apply styles
The process is intuitive and well documented and it'll help you turbocharge your existing JSF applications or start building new ones from scratch.

I stepped through the tutorial and worked through the example that it gives, and found it to be an excellent and valuable learning experience. The only caveat that I would put forward is that you need to be pretty knowledgeable around Java Server Faces to understand and get the most from the tutorial, never mind the product. In some ways this narrows its reach—if you are into JSF, you'll probably love it; if you aren't you might find a lot of it a bit daunting. As I'm familiar with JSF, but far from an expert, a lot of it went over my head. Another possible drawback is that it only works (at present) with Apache Tomcat, and it isn't clear whether or not you can adjust it easily to work with other application servers such as WebLogic, WebSphere, or JBoss.

The bottom line that I found with this product is that if you are currently using JSF, it's a slam dunk to upgrade your UI and make it more asynchronous and responsive. If you aren't, this great GUI technology may be a great motivation to start.

This is an evolutionary product, that is bringing a new layer of complexity to your applications—and as a result I would strongly recommend that you do a thorough evaluation before deciding to purchase. There isn't a commercial release yet, just the early access version, so you'll have to work with that for now. Company executives told us the basic ICEfaces framework will be free for development and distribution. ICEfaces Enterprise Edition will be released in Q2 2006 and will be priced between $1,500-$3,000 per server. A commercial release of the basic product is in development, but won't be ready for a year.

If you've ever built JSF applications you'll love ICEfaces. It integrates cleanly with the framework, is straightforward to use, and lets you add levels of GUI sophistication that were previously available in a thin client. If you've never used JSF, there is likely to be a bit of a learning curve, but it is certainly a worthwhile undertaking if you have the requirement to deliver rich, thin clients.



Laurence Moroney is a freelance enterprise architect who specializes in designing and implementing service-oriented applications and environments using .NET, J2EE, or (preferably) both. He has authored books on .NET and Web services security, and more than 30 professional articles. A former Wall Street architect, and security analyst, he also dabbles in journalism, reporting for professional sports. You can find his blog at http://www.philotic.com/blog.
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap