First page Back Continue Last page Graphics
Backing beans are a type of managed bean.
- Use one backing bean per page, if needed.
- This gives you one place to manage the code.
- It contains logic and properties for some UI components.
- JDeveloper can create this backing bean for you, but you may want your own superclass.
- Prune the contents of the backing bean; code “interesting” objects only.
- Place backing beans in the request scope.
- Use consistent naming and packaging.
JSF Backing Beans
A typical JSF application includes one or more backing beans, which are JavaBeans components (see JavaBeans Components) associated with UI components used on a page. A backing bean defines UI component properties, each of which is bound to either a component’s value or a component instance. A backing bean can also define methods that perform functions associated with a component, including validation, event handling, and navigation processing.