This binds the guests array to the list attribute of WORepetition. WebObjects Builder automatically creates a variable called guest and binds it to the item attribute (the second field in the repetition).
Creating a WORepetition and binding it in this manner is the equivalent of saying "for each guest item in the guests array, display the name, e-mail, and comments."
WORepetition is an example of a dynamic element that requires bindings to two different variables. The list attribute is bound to the guests array, and the item attribute is bound to the variable guest. WOString, on the other hand, is like the WOTextFields and WOText that you bound earlier: WOString defines multiple attributes, but you only need to bind to one attribute, the value attribute, for the string to work properly. The other attributes are assigned default values.
You can learn more about WORepetitions, WOStrings, and the other dynamic elements in this example by looking them up in the Dynamic Elements section of the WebObjects Reference. To learn more about how to use WebObjects Builder to create dynamic elements, see "Using Dynamic Elements in WebObjects Builder."
Table of Contents Next Section