Download FAQ History |  | API Search Feedback

> ## JavaServer Faces Technology

> ##### Jennifer Ball

> JavaServer Faces technology is a server-side user interface framework for Java technology-based Web applications.

> The main components of JavaServer Faces technology are:

> - An API and reference implementation for: representing UI components and managing their state; handling events, server side validation, and data conversion; defining page navigation; supporting internationalization and accessibility; and providing extensibility for all of these features.
> - A JavaServer Pages (JSP) custom tag library for expressing UI components within a JSP page.

> This well-defined programming model and UI component tag library significantly ease the burden of building and maintaining Web applications with server-side UIs. With minimal effort, you can:

> - Wire client-generated events to server-side application code
> - Map UI components on a page to server-side data
> - Construct a UI with reusable and extensible components.
> - Save and restore UI state beyond the life of server requests

> As shown in Figure 20-1, the user interface you create with JavaServer Faces technology (represented by `myUI` in the graphic) runs on the server and renders back to the client.

> Figure 20-1 The UI Runs on the Server

> The JSP page, `myform.jsp`, expresses the user interface components with custom tags defined by JavaServer Faces technology. The UI for the Web application (represented by `myUI` in the figure) manages the objects referenced by the JSP page. These objects include:

> - The component objects that map to the tags on the JSP page
> - The event listeners, validators, and converters that are registered on the components
> - The model objects that encapsulate the data and application-specific functionality of the components

Download FAQ History |  | API Search Feedback

All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.