Download
FAQ History |
![]() ![]() ![]() |
API
Search Feedback |
Steps for Creating a Custom Component
Before describing how the image map works, it helps to summarize the basic steps needed to create an application that uses custom components. You can apply the following steps while developing your own custom component example.
- Write a tag handler class that extends
javax.faces.webapp.FacesTag
. In this class, you need:- Create a tag library descriptor (TLD) that defines the custom tag.
- Create a custom component class
- Include the rendering code in the component class or delegate it to a renderer (explained in step 6).
- If your component generates events, queue the event on the
FacesContext
.- Delegate rendering to a renderer if your component does not handle the rendering.
- Register the component
- Create an event handler if your component generates events.
- Declare your new TLD in your JSP page and use the tag in the page.
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.