Here is a list of JSF elements that can be registered in the faces-config.xml file:
- The Component element represents a concrete UIComponent implementation class, and defines the state and behavior of a UI component. This behavior includes converting the value of a component to the appropriate markup, queuing events on components, performing validation, and other functionality.
- The Converter element is an implementation of the Converter interface. You can create a custom converter to perform some specialized conversion, if the standard converters included with JavaServer Faces technology don't perform the data conversion that you need.
- Managed Bean
- The Managed Bean element represents an instance of a bean class. At runtime, the JavaServer Faces implementation processes the managed-bean element.
- Referenced Bean
- Declares a JavaBean that is available in a JSF scope. Unlike a managed bean, the application itself must instantiate this bean and ensure it is accessible in the desired scopes. The element is meant to be used as metadata for development tools.
- Render Kit
- The Render Kit element represents a concrete RenderKit implementation. You can create a custom render kit in order to render components to non-HTML clients, for example.
- If the standard validators don't perform the validation checking you need, you can
create a custom validator to validate user input. There are two ways to implement the validation code:
- Implement a backing bean method that performs the validation.
- Provide an implementation of the Validator interface to perform the validation.
- Open the faces-config.xml file in the editor.
- Switch to the Structure tab.
- Select the element you want to register in the tree view (for example, Managed Bean).
If you want to add a navigation rule, you can start by drawing the navigation diagram. For more information, see "Defining Navigation Rules".
- On the main toolbar click .
- Specify the element's options. For more information, see "Faces Config Structure".