| By Anil Sharma | Article Rating: |
|
| April 13, 2007 08:00 AM EDT | Reads: |
1,864 |
This content is reprinted from Real-World AJAX: Secrets of the Masters published by SYS-CON Books. To order the entire book now along with companion DVDs for the special pre-order price, click here for more information. Aimed at everyone from enterprise developers to self-taught scripters, Real-World AJAX: Secrets of the Masters is the perfect book for anyone who wants to start developing AJAX applications.
An AJAX UI Versus Server-Side Presentation
JSP, JSF, special tags, configuration files, and tld files are all replaced by client-side HTML templates, components, and controllers. We only need a controller servlet on the server side.
Secret Sauce in AJAX UI
The following list re-emphasizes the features that make AJAX a compelling rich client technology.
- Use of HTML pages as templates or tiles.
- Overlaying data on the top of the HTML pages using a set of wrapper components on the client side.
- Use of fully qualified names for data binding (an XPATH equivalent but a much simpler notation).
- JavaScript as a programming language.
- HTML and CSS - declarative, popular, and familiar tag languages - an excellent foundation for page layout.
This section discusses AJAX pages and UI workflows in abstract terms. The purpose is to lay a foundation for ensuing examples in the following sections.
An AJAX UI starts with a page. Let's call it a main-page. Depending on the application, there may be more than one main page. For now, assume that a main page is the starting point of an application scenario. Once the design for one scenario is understood, putting together more scenarios, independent or interrelated, is a matter of building page hierarchies.
Now let's look at a typical main page for an AJAX UI. It consists of the following components as shown in Figure 5.5.
- A header area for displaying a logo image and the title of the page
- A top navigation bar to select sub-pages based on application functions or business objects
- A side sub-navigation bar used for navigating to different sub-pages or doing some global operations such as search
- A main display area where the sub-pages are displayed based on the user selection
- A message area at the bottom where the status and error messages are displayed
Once the main page is displayed, one of the following things will happen based on user selection.
- The content of the main area will change and the highlighted options in one or both navigation bars might change.
- The entire page will be replaced by a new page.
- The client may request new data from the server and display the new data in the page.
- The client may fi nd the new data in the local cache and display it on the page.
- A new window (dialog) may pop up over the current window.
This content is reprinted from Real-World AJAX: Secrets of the Masters published by SYS-CON Books. To order the entire book now along with companion DVDs, click here to order.
Published April 13, 2007 Reads 1,864
Copyright © 2007 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Anil Sharma
Anil Sharma is a founder of Vertex Logic and architect of its AjaxFace product. He is working with Vertex Logic's customers and helping them deploy WEB 2.0 applications built using AjaxFace. These applications are in the areas of online printing, community WEB sites and social networking. He is driving future products of Vertex Logic. Prior to Vertex Logic, he was CTO and founder of Softrock Systems and Component Plus. There he built a model driven application platform using J2EE. His primary interests include user interface infrastructures and model driven applications. He is one of the contributors of the book "Real World AJAX - Secrets of the Master".
- Practical Approaches for Optimizing Website Performance
- SQL Anywhere Server and AJAX
- The Difference Between Web Hosting and Cloud Computing
- Ajax in RichFaces 3.3, JSF 2 and RichFaces 4
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- US Post Office Hops a Ride on NetSuite’s Cloud
- Gang of Four Creates Cloud BI Stack
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Confessions of a Ulitzer Addict
- AJAX World RIA Conference & Expo Kicks Off in New York City
- An Introduction to Abbot
- What is Web 3.0?
- AJAXWorld RIA Conference & Expo 2009 West: Call for Papers
- Interviewing Java Developers With Tears in My Eyes
- Adobe Enters Cloud Computing with LiveCycle
- REA Is Where RIA Becomes the Norm
- RIAs for Web 3.0 Using the Microsoft Platform
- Practical Approaches for Optimizing Website Performance
- Social Media Terrorists
- 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
































