Attributes
Every dynamic element has one or more attributes. These attributes are used for several purposes:
- Some attributes are used to determine the exact HTML to be generated when the element is displayed.
For example, the value attribute of a dynamic string element (WOString) determines what text is generated in its place. At run time, WebObjects replaces the WOString with the value of the variable or method that is bound to it. - Other attributes are used to capture information provided by users. In particular, form elements are used for this purpose.
For example, when the user submits a form, text typed by the user into a dynamic text area (WOText) inside the form is assigned to the variable bound to the value attribute of the text area. - Other attributes are used to specify actions to be taken when an event occurs.
For example, a dynamic hyperlink (WOHyperlink) has an action attribute that specifies an action method in the application that is executed when the user clicks the link.
Most dynamic elements have a number of attributes that you can bind. Some are required and others are optional. For complete information about WebObjects' dynamic elements and their attributes, see Dynamic Elements Reference.
Table of Contents Next Section