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.

To bind the default property:

  1. Right-click the component you want to bind and choose Bind to Data.
  2. What you do next depends on the type of component you right-clicked.

To bind general component properties:

  1. Right-click the component you want to bind and choose Property Bindings.
  2. In the Property Bindings dialog box, choose the property that you want to bind from the list on the left side.
  3. Choose the target to which you want to bind from the list on the right side.
  4. 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