Conditionals – Apple WebObjects 3.5 Tools And Techniques User Manual
Page 79

Creating Other WebObjects
79
When you wrap a repetition around a table row, the repetition symbol
doesn’t appear. Instead, a blue border appears around the row. To bind the
repetition, drag from the object browser to anywhere in the row (but not to
a dynamic element inside the row). The Inspector appears, allowing you to
complete the binding as usual.
Note:
You can also wrap a repetition around a single cell in a table. In addition,
this same procedure of wrapping a repetition around a table row or cell also
works for conditionals (see next section).
Conditionals
A conditional (WOConditional) is a dynamic container element that
displays its contents only if a particular condition is true. WOConditional’s
main attribute is
condition
, which takes a Boolean value. If
condition
is true (1),
Element path shows that the WORepetition is
contained by the table and contains a table row.
Select a table row, then click here
to create a repetition around the row.
Drag variable to the table row
to bind to the repetition.
Click here to bind
allGuests to the
repetition’s
list attribute.
The blue border and background
means the row is in a repetition.