Author: cluts
Date: 2009-02-13 06:39:47 -0500 (Fri, 13 Feb 2009)
New Revision: 12647
Modified:
trunk/docs/userguide/en/src/main/docbook/included/repeat.xml
Log:
RF-6013 - code examples have been checked and updated
Modified: trunk/docs/userguide/en/src/main/docbook/included/repeat.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/repeat.xml 2009-02-12 17:53:13 UTC
(rev 12646)
+++ trunk/docs/userguide/en/src/main/docbook/included/repeat.xml 2009-02-13 11:39:47 UTC
(rev 12647)
@@ -70,28 +70,18 @@
several child components separately without updating the
whole page.</para>
<programlisting role="XML"><![CDATA[...
- <a4j:poll intervall="1000" action="#{repeater.action}"
reRender="text">
- <table>
- <tbody>
- <a4j:repeat value="#{bean.props}" var="detail"
ajaxKeys="#{repeater.ajaxedRowsSet}">
- <tr>
- <td>
- <h:outputText value="detail.someProperty"
id="text"/>
- </td>
- </tr>
- </a4j:repeat>
- </tbody>
- </table>
- </a4j:poll>
-...
-]]></programlisting>
-
- <para>Thus, a list with a table structure from
<code>bean.props</code> is
- output.</para>
- <para>In the above-mentioned example the component <emphasis
role="bold">
-
<property><a4j:poll></property>
- </emphasis> sends Ajax requests every second, calling
the
- <code>action</code> method of the
<code>repeater</code> bean. </para>
+<table>
+ <tbody>
+ <a4j:repeat value="#{repeatBean.items}" var="item"
+ ajaxKeys="#{updateBean.updatedRow}">
+ <tr>
+ <td><h:outputText value="#{item.code}" id="item1"
/></td>
+ <td><h:outputText value="#{item.price}" id="item2"
/></td>
+ </tr>
+ </a4j:repeat>
+ </tbody>
+</table>
+...]]></programlisting>
<note>
<title>Note:</title>
<para>The <emphasis role="bold">
Show replies by date