PATH |
WONestedList recursively displays a hierarchical, ordered (numbered) or unordered (bulleted) list of hyperlinks. This element is useful when you want to display hierarchical lists. When the user clicks one of the objects in the list, it is returned in selection and the action method is invoked.
At any point during iteration of the list, the method specified by the sublist attribute returns the current list's sublist (if any), level specifies the current nesting level (where the topmost level is zero), index gives index of the current item within that nesting level (item returns the actual item), and isOrdered specifies whether the current sublist should be a numbered list or a bulleted list.
nil
if the current item is a leaf.true
(or YES
),
the current sublist is rendered as an ordered list. The default
is to render as an unordered list. 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
).