List structures can be displayed using the p:list
and p:listItem
tags. Lists may contain arbitrarily-nested sublists. List items may not be used outside of a list. he following document uses the ui:repeat
tag to to display a list of values retrieved from a Seam component.
<p:document xmlns:p="https://jboss.com/products/seam/pdf"
xmlns:ui="https://java.sun.com/jsf/facelets"
title="Hello">
<p:list style="numbered">
<ui:repeat value="#{documents}" var="doc">
<p:listItem>#{doc.name}</p:listItem>
</ui:repeat>
</p:list>
</p:document>
p:list
supports the following attributes:
-
style
-
The ordering/bulleting style of list. One of: NUMBERED
, LETTERED
, GREEK
, ROMAN
, ZAPFDINGBATS
, ZAPFDINGBATS_NUMBER
. If no style is given, the list items are bulleted.
-
listSymbol
-
For bulleted lists, specifies the bullet symbol.
-
indent
-
The indentation level of the list.
-
lowerCase
-
For list styles using letters, indicates whether the letters should be lower case.
-
charNumber
-
For ZAPFDINGBATS, indicates the character code of the bullet character.
-
numberType
-
For ZAPFDINGBATS_NUMBER, indicates the numbering style.