<p>This is an example of how dynamic templates (using the JX macros) allow to change the
page structure depending on the form contents. By adding or removing rows in the repeater
below you will see:</p>
-<ul>
<li>when there are no contacts, only the "Add contact" button is displayed and the table isn't shown,</li>
<li>when there are some contacts, the "move up" and "move down" buttons are not shown on the first and last lines, respectively.</li>
</ul>
-<p>
This sample has a
<ahref="do-dojoRepeater.flow">variation using Dojo</a>
that allows drag-and-drop reordering
of rows and clicking anywhere in a row to select it.
</p>
-<bu:replaceid="contacts">
-<div>
-<p>
-<strong>
<em>There are no contacts to display</em>
</strong>
</p>
-<p>
-<bu:replaceid="addcontact">
-<fi:actionid="addcontact"state="active">
<fi:label>Add contact</fi:label>
</fi:action>
</bu:replace>
</p>
</div>
</bu:replace>
-<bu:replaceid="ok">
-<fi:actionid="ok"state="active">
<fi:label>Submit</fi:label>
</fi:action>
</bu:replace>
<br/>
<ahref="./do-dynaRepeater.flow">Restart this sample</a>