See Also
To create a Bean property for a managed bean:
- In the Projects window, right-click the node for the managed bean. You can select the Session Bean, Request Bean, or Application Bean node.
For example, to add a property to a Request Bean, right-click the project-name > Request Bean node.
- From the pop-up menu, choose Add > Property or Add > Indexed Property.
Either the New Property Pattern dialog box or the New Indexed Pattern dialog box appears, enabling you to customize the code to be generated for the property.
- Click OK to generate the property and the property's methods for the selected managed bean.
- Note: To see the nodes added for the property in the Projects window, expand the class under the node, and then expand the Fields node to see the property itself and expand the Methods node to see the methods created for the property. For example, for the Request Bean, expand project-name > Request Bean > RequestBean1 > Methods to see the methods added for the new property.
To create a Bean property for a generic bean:
- In the Projects window, find the class for your bean, expand its node, and right-click Bean Patterns.
- From the pop-up menu, choose Add > Property or Add > Indexed Property.
Either the New Property Pattern dialog box or the New Indexed Pattern dialog box appears, enabling you to customize the code to be generated for the property.
- Click OK to generate the component property methods for the selected class.
- See Also
- Application Bean Node
- Request Bean Node
- Session Bean Node
- Binding Component Properties
- Creating a Bean
- Creating a Bean Event Set
- Deleting a Property or Event Set
- Generating BeanInfo