Your applications will use many Java beans:
EnterpriseItem
, EnterpriseItems
, or Identity
.
AuthenticationProps
or SubmitButtonProps
.
To use the EnterpriseItem, EnterpriseItems, or Identity managed beans, or any other beans in the development of your application, the beans must be declared in the application configuration resource file (faces
). These declarations ensure that the JavaServer Faces implementation can automatically create new instances of the beans whenever they are needed. The bean's resources and default property settings should also be defined in this file.
Note: The faces
file is also used to configure navigation rules which define the navigation flow of your web application. For more information, see How do I define the navigation flow of my application?.
For example, here is a template for a managed bean declaration:
<managed
<description>Description of the managed bean.</description>
<managed
<managed
<managed
<managed
<property
<value>Default value of the property.</value>
</managed
</managed
The basic details of the managed bean are specified by the <description>, <managed
<boe:itemsGrid id="myItemsGrid" enterpriseItems="#{enterpriseItems}">
To have the ItemsGrid
component reference an EnterpriseItems
bean in this way, using the enterpriseItems
attribute, a managed bean declaration must exist in faces
:
<managed
The <managed
<managed
com.businessobjects.jsf.appcontrols.model.EnterpriseItems
</managed
The <managed
<managed
Finally, use zero or more <managed
<managed
<property
<property
<value>#{myButtonProps}</property
</managed
The #{myButtonProps}
statement refers to a SubmitButtonProps
bean. For more information on property beans, see How do I use property classes?
The JavaServer Faces implementation processes faces
at application startup time. When a bean is first referenced from the page, the JavaServer Faces implementation initializes it and stores it in the defined scope if no instance of the bean exists. The bean is then available for all pages in the application.
Business Objects http://www.businessobjects.com/ Support services http://www.businessobjects.com/services/support/ |