repeat - Repeat

Repeats embedded controls by iterating through a data source.


Container Controls


<xp:repeat attributes>
	contol ...
Table 1. Essential properties
Property Description
id Defaults to repeat1, repeat2, and so on.
value Typically the data binding is to a collection of elements, for example, a NotesDocumentCollection object.
var Typically this variable refers to one member of the bound data collection, for example, a NotesDocument object if the binding is to a NotesDocumentCollection object.
Table 2. All properties
Category Properties
accessibility role
basics attrs, binding, dir, id, lang, loaded, removeRepeat, rendered, rendererType, repeatControls, rowAttrs
data first, indexVar, rows, value, var
styling disableTheme, style, styleClass, themeId


At run time, the repeated content of the control appears on the page. Use var in the content of the repeat control to repeat the content for each member of the data source.


This repeat control displays the subject items for all documents in the current database.
<xp:repeat id="repeat1" rows="30"
	value="#{javascript:return database.getAllDocuments()}" var="rowdoc"
	<xp:text escape="true" id="computedField1">
			<![CDATA[#{javascript:return rowdoc.getItemValueString("subject") + " "}]]>