Binding Visual Web JSF Component Properties
See Also
Many component properties are bindable, that is, they can be attached to other values in the
application, such as to other components, component properties, or to hosted services such as
databases or web services. Most components have a default property that is bindable. This
property is typically one that changes the component's displayed text or image and might be
the same property that picks up changes made by the user. For example, the Text Field
component's text
property serves both to display a text value and to send one
entered by the user, while the Drop Down List component's items
property binds
to a data structure that populates the list.
- NetBeans IDE 6.1 features on-demand binding. You must manually add a binding attribute to a component. To do so, right-click the component and choose Add Binding Attribute.
To bind the default property:
-
Right-click the component you want to bind and choose Bind to Data.
-
What you do next depends on the type of component you right-clicked.
To bind general component properties:
-
Right-click the component you want to bind and choose Property Bindings.
-
In the Property Bindings dialog box, choose the property that you want to bind from the
list on the left side.
-
Choose the target to which you want to bind from the list on the right side.
-
Click Apply and click Close.
-
See Also
-
Property Bindings Dialog
Box
-
About Components
-
Common Component Properties
-
JavaServer Faces Expression
Language
-
Component Tasks: Quick Reference
-
Properties Window
Legal
Notices