Download
FAQ History |
![]() ![]() ![]() |
API
Search Feedback |
Creating Custom UI Components
Jennifer Ball
JavaServer Faces technology offers a rich set of standard, reusable UI components that enable you to quickly and easily construct UIs for Web applications. But often you need a component with some additional functionality or a completely new component, like a client-side image map. Although JavaServer Faces technology doesn't furnish these components in its implementation, its component architecture allows you to extend the standard components to enhance their functionality or create your own unique components.
In addition to extending the functionality of standard components, you might also want to change their appearance on the page or render them to a different client. Enabled by the flexible JavaServer Faces architecture, you can separate the definition of the component behavior from its rendering by delegating the rendering to a separate renderer. This way, you can define the behavior of a custom component once, but create multiple renderers, each of which defines a different way to render the component.
In addition to providing a means to easily create custom components and renderers, the JavaServer Faces design also makes it easy to reference them from the page through JSP custom tag library technology.
This chapter uses an image map custom component to explain all you need to know to create simple custom components, custom renderers, and associated custom tags, and to take care of all the other details associated with using the components and renderers in an application.
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.