| By Ric Smith | Article Rating: |
|
| September 20, 2007 03:00 PM EDT | Reads: |
8,112 |
First released in March 2004, the server-side component model
introduced by JavaServer Faces (JSF) brought the promise of simplifying
Web-user interface (UI) development. Then in February 2005, Jesse James Garrett
coined the term
interaction on the Web. The stale click-and-wait
experience once associated with Web applications is no longer acceptable. Users
now expect real-time updates and desktop-like functionality coupled with the
ubiquitous nature of the Web. Consequently, developers are now stretching the
limits of the JavaScript programming model and battling cross-browser
idiosyncrasies to mimic desktop functionality over the wire. The result is an
escalation in the complexity of Web development – a problem initially resolved
by the elegance of the JSF component model. Luckily, JSF has evolved alongside
The flexibility of the JSF component model (that is, decoupled
presentation, state, and behavior) makes it relatively easy to build components
that not only render HTML, but also render other markup presentation languages,
including DHTML and JavaScript. In their simplest form, AJAX-enabled JSF
components use a custom render kit to push a JavaScript and markup presentation
to a client browser. In this case, the content rendered not only represents the
component, but also provides the necessary functionality in the form of
supporting JavaScript objects that initiate XMLHttpRequests (XHR) and handle
call backs. These XHR requests, made with JavaScript rendered to the client,
are treated as first-class citizens in the JSF life cycle. Tight integration
with the JSF life cycle enables JavaScript objects to invoke operations on
managed beans, which contain server-side application logic. The beauty of this
model lies in its ability to encapsulate the intricacies of
One benefit of providing
component representation on both the client and server sides is that Java
events are triggered and handled on the server, while JavaScript handles events
on the client, eliminating many previously required round-trips to the server.
The following example illustrates this point. When a user selects a node in a
collapsible tree, a tabbed panel or other component on a browser screen is
updated and a partial page refresh occurs. Before client-side JavaScript, page
updates necessitated a round-trip to the server, even when advanced JSF
component sets, such as Apache Trinidad, were used.
The ability to balance client- and server-side event
handling is not the only advantage gained by a deep and meaningful marriage
between
To demonstrate this concept, let’s look at the difference in the code execution necessary to render a simple form button in Dojo and an AJAX/JSF framework.
Published September 20, 2007 Reads 8,112
Copyright © 2007 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Ric Smith
Ric Smith is director, business and product strategy at Kaazing. provides Kaazing Corporation with a wealth of experience in product management and consulting for enterprise products and services. Prior to joining Kaazing, Ric was a principal product manager for Oracle's Fusion Middleware at Oracle's Headquarters in Redwood Shores, CA. In his role as a Principal Product Manager he was responsible for the evangelism and product direction of Oracle's AJAX and Java EE Web Tier offerings. Before joining the Fusion Middleware team, Ric worked for Oracle's consulting business as a principal consultant where he led development of mission-critical applications for prominent organizations within the defense/intelligence industry. In addition, Ric won consecutive awards for technical achievement for each year of his tenure as a consultant. Ric is a frequent speaker at international events and has written articles featured in leading industry publications such as Java Developer's Journal and AJAXWorld Magazine. He is also a representative to the OpenAjax Alliance and an honors graduate of the University of Arizona.
![]() |
Bruno 09/19/07 03:28:03 AM EDT | |||
Hello Ric, Ever heard of Google Web Toolkit ? This framework *really* provides an unified API (client and server side in Java), where JSF needs to know about HTML, JSP, JSF, Java and XML. Bruno |
||||
- Kindle 2 vs Nook
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- Confessions of a Ulitzer Addict
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Moving Your RIA Apps into the Cloud: Seven Challenges
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Windows 7 – Microsoft’s First Step to the Cloud
- Ulitzer Provides a Powerful Social Journalism Platform
- Jill Tummler Singer, Deputy CIO of CIA, Keynotes at GovIT Expo
- Open Source Mobile Cloud Sync and Push Email
- Kindle 2 vs Nook
- The Difference Between Web Hosting and Cloud Computing
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- Ajax in RichFaces 3.3, JSF 2 and RichFaces 4
- Confessions of a Ulitzer Addict
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- My Thoughts on Ulitzer
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- US Post Office Hops a Ride on NetSuite’s Cloud
- Moving Your RIA Apps into the Cloud: Seven Challenges
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Building a Drag-and-Drop Shopping Cart with AJAX
- What Is AJAX?
- Google Maps! AJAX-Style Web Development Using ASP.NET
- Flashback to January 2006: Exclusive SYS-CON.TV Interviews on "OpenAjax Alliance" Announcement
- AJAXWorld Conference & Expo to Take Place October 2-4, 2006, at the Santa Clara Convention Center, California
- AJAX Sponsor Webcasts Are Now Available at AJAXWorld Website
- How and Why AJAX, Not Java, Became the Favored Technology for Rich Internet Applications
- "Real-World AJAX" One-Day Seminar Arrives in Silicon Valley
- AJAXWorld University Announces AJAX Developer Bootcamp
- AJAX Support In JadeLiquid WebRenderer v3.1
- Where Are RIA Technologies Headed in 2008?
- Struts Validations Framework Using AJAX






































