PATH |
WOPopUpButton, when clicked, displays itself as a selection list that allows the user to select only one item at a time. The related element WOBrowser is similar to WOPopUpButton except that it allows the user to select more than one item at a time.
You should provide the title of an item in displayString rather than in value. If there is no binding for displayString, the string assigned to value is used for the item.
aCollege
could
represent an object in a colleges
array.aCollege.name
for
each college
object in the
list.OPTION
tag
within the selection, this is the "value" attribute (that is, <OPTION value="someValue">
).
You can use this binding to specify additional identifiers of each
item in the menu.college
object. true
(or YES
),
this element appears in the page but is not active. That is, selection does
not contain the user's selection when the page is submitted.true
(or YES
),
the string rendered by displayString is
converted so that characters which would be interpreted as HTML
control characters become their escaped equivalent (this is the
default). Thus, if a your displayString is
"a <b>bold</b> idea
",
the string passed to the client browser would be "a
<B>bold</B> idea
", but
it would display in the browser as "a <b>bold</b>
idea
". If escapeHTML evaluates
to false
(or NO
),
WebObjects simply passes your data to the client browser "as is."
In this case, the above example would display in the client browser
as "a bold idea
".
If you are certain that your strings have no characters in them
which might be interpreted as HTML control characters, you get better
performance if you set escapeHTML to false
(or NO
). nil
or null
.