Term | Description |
UI component (also called a control or simply a component) | A stateful object, maintained on the server, that provides specific functionality for interacting with an end user. UI components are JavaBeans with properties, methods, and events. They are organized into a view, which is a tree of components usually displayed as a page. |
Renderer | Responsible for displaying a UI component and translating a user’s input into the component's value. Renderers can be designed to work with one or more UI components, and a UI component can be associated with many different renderers. |
Validator | Responsible for ensuring that the value entered by a user is acceptable. One or more validators can be associated with a single UI component. |
Backing beans | Specialized JavaBeans that collect values from UI components and implement event listener methods. They can also hold references to UI components. |
Converter | Converts a component’s value to and from a string for display. A UI component can be associated with a single converter. |
Events and listeners | JSF uses the JavaBeans event/listener model (also used by Swing). UI components (and other objects) generate events, and listeners can be registered to handle those events. |
Messages | Information that’s displayed back to the user. Just about any part of the application (backing beans, validators, converters, and so on) can generate information or error messages that can be displayed back to the user. |
Navigation | The ability to move from one page to the next. JSF has a powerful navigation system that’s integrated with specialized event listeners. |
以下为JSF的UML图