Home | | Internet & World Wide Web HOW TO PROGRAM | | Internet Programming | | Web Programming | Ajax-Enabled JavaServer Faces Web Applications

Chapter: Internet & World Wide Web HOW TO PROGRAM - Rich Internet Application Server Technologies - Ajax-Enabled JavaServer Faces Web Applications

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail

Ajax-Enabled JavaServer Faces Web Applications

This chapter continues our discussion of web application development with several advanced concepts.

Chapter 27

Ajax-Enabled JavaServer™  Faces Web  Applications

 

Introduction

 

This chapter continues our discussion of web application development with several advanced concepts. We discuss accessing, updating and searching databases in a web appli-cation, adding virtual forms to web pages to enable subsets of a form’s input components to be submitted to the server, and using Ajax-enabled component libraries to improve ap-plication performance and component responsiveness. [Note: This chapter assumes that you know Java. To learn more about Java, check out Java How to Program, Seventh Edition, or visit our Java Resource Centers at  www.deitel.com/ResourceCenters.html.]

 

We present a single address book application developed in three stages to illustrate these concepts. The application is backed by a Java DB database for storing the contact names and their addresses.

 

The address book application presents a form that allows the user to enter a new name and address to store in the address book and displays the contents of the address book in table format. It also provides a search form that allows the user to search for a contact and, if found, display the contact’s address on a map. The first version of this application dem-onstrates how to add contacts to the database and how to display the list of contacts in a JSF Table component. In the second version, we add an Ajax-enabled AutoComplete Text Field component and enable it to suggest a list of contact names as the user types. The last version allows you to search the address book for a contact and display the corresponding address on a map using the Ajax-enabled     component that is powered by Map Viewer Google Maps (maps.google.com).

As in Chapter 26, this chapter’s examples were developed in Netbeans. We installed a supplementary component library—the Java BluePrints Ajax component library— which provides the Ajax-enabled components used in the address book application.

Instructions for installing this library are included in Section 27.3. These Ajax-enabled components use the Dojo Toolkit (which we introduced in Chapter 15) on the client side.


Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail


Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.