tailieunhanh - Lecture Object Oriented Programing - Chapter 27: Web applications (cont)

In this chapter you will learn: To use data providers to access databases from web applications built in Java Studio Creator 2, the basic principles and advantages of Ajax technology, to include Ajax-enabled JSF components in a Java Studio Creator 2 web application project, to configure virtual forms that enable subsets of a form’s input components to be submitted to the server. | 27 Web Applications: Part 2 Whatever is in any way beautiful hath its source of beauty in itself, and is complete in itself; praise forms no part of it. Marcus Aurelius Antoninus There is something in a face, An air, and a peculiar grace, Which boldest painters cannot trace. William Somerville Cato said the best way to keep good acts in memory was to refresh them with new. Francis Bacon I never forget a face, but in your case I’ll make an exception. Groucho Marx Painting is only a bridge linking the painter’s mind with that of the viewer. Eugéne Delacroix OBJECTIVES In this chapter you will learn: To use data providers to access databases from web applications built in Java Studio Creator 2. The basic principles and advantages of Ajax technology. To include Ajax-enabled JSF components in a Java Studio Creator 2 web application project. To configure virtual forms that enable subsets of a form’s input components to be submitted to the server. Introduction . | 27 Web Applications: Part 2 Whatever is in any way beautiful hath its source of beauty in itself, and is complete in itself; praise forms no part of it. Marcus Aurelius Antoninus There is something in a face, An air, and a peculiar grace, Which boldest painters cannot trace. William Somerville Cato said the best way to keep good acts in memory was to refresh them with new. Francis Bacon I never forget a face, but in your case I’ll make an exception. Groucho Marx Painting is only a bridge linking the painter’s mind with that of the viewer. Eugéne Delacroix OBJECTIVES In this chapter you will learn: To use data providers to access databases from web applications built in Java Studio Creator 2. The basic principles and advantages of Ajax technology. To include Ajax-enabled JSF components in a Java Studio Creator 2 web application project. To configure virtual forms that enable subsets of a form’s input components to be submitted to the server. Introduction Accessing Databases in Web Applications Building a Web Application That Displays Data from a Database Modifying the Page Bean File for the AddressBook Application Ajax-Enabled JSF Components Java BluePrints Component Library AutoComplete Text Field and Virtual Forms Configuring Virtual Forms JSP File with Virtual Forms and a AutoComplete Text Field Providing Suggestions for a AutoComplete Text Field Google Maps Map Viewer Component Obtaining a Google Maps API Key Adding Map Viewer Component to a Page JSP File with Map Viewer Component JSP File with Map Viewer Component Page Bean that Displays a Map in the Map Viewer Component Wrap-Up Web Resources Introduction AddressBook Application Three stages Introduce Ajax-Enabled JSF components from the Java BluePrints library Accessing Databases in Web Applications Many web applications access databases to store and retrieve .