More Definitions
[Previous] [Main] [Next]

More Definitions 1


Managed Beans
- Backing Beans that are registered with the web container. For session beans, the first time a client accesses a bean, an instance is created.

Converters - Data in Java can have many different types such integers, dates and text. In HTML there is one type - strings. Converters change the strings into the proper Java type and convert the Java types into appropriately formatted strings.

Validators - Clean data is a must for a serious application. Checking that data meets business criteria is a required step.

Messages - Conversion or validation errors generate error messages. These are queued up and the same page is rendered again, this time with the messages.

Events and Listeners - Commands (buttons and links) and item changes generate events. When the next request is sent to the server listeners activate based on the events. Note: most events are handled by a default command listener that is generated automatically by JSF.

Navigation - methods fired off by the command events return simple strings like "success" or "failure." The JSF servlet looks these up in a list (part of faces-config.xml) and determines what page to render next.

Binding - JSF uses a statement called a binding to attach UI components to specific backing bean properties or methods.