Author: ochikvina
Date: 2009-09-25 12:29:29 -0400 (Fri, 25 Sep 2009)
New Revision: 15671
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_repeat.xml
Log:
https://jira.jboss.org/jira/browse/RF-7913 - the component is reviewed and updated;
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_repeat.xml
===================================================================
---
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_repeat.xml 2009-09-25
16:28:29 UTC (rev 15670)
+++
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_repeat.xml 2009-09-25
16:29:29 UTC (rev 15671)
@@ -41,23 +41,21 @@
</para>
- <programlisting role="XML">...
-<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>
+ <programlisting role="XML"><![CDATA[...
+<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>
<para>
- The example above the <emphasis role="bold">
- <property><a4j:repeat></property>
- </emphasis> points to an method that contains row keys to be updated.
+ The example above points to a method that contains row keys to be
updated.
</para>
<note>
<title>Note:</title>
@@ -73,19 +71,21 @@
<para>
- One more benefit of this component is absence of strictly
defined markup as JSF HTML DataTable and TOMAHAWK DataTable has.
+ One more benefit of this component is absence of strictly
defined markup as JSF HTML DataTable and TOMAHAWK DataTable have.
Hence the components could be used more flexibly anywhere where
it's necessary to output the results of selection from some collection.
</para>
- <para>The next example shows collection output as a plain HTML
list:</para>
- <programlisting role="XML"><ul>
- <a4j:repeat ...>
- <li>...<li/>
+ <para>If you want to output a collection as a plain HTML list, use the
following structure:</para>
+ <programlisting role="XML"><![CDATA[...
+<ul>
+ <a4j:repeat ...>
+ <li>...<li/>
...
- <li>...<li/>
- </a4j:repeat>
-</ul></programlisting>
- <para>All other general attributes are defined according to the
similar
+ <li>...<li/>
+ </a4j:repeat>
+</ul>
+...]]></programlisting>
+ <para>All other general attributes of the component are defined
according to the similar
attributes of iterative components (<emphasis
role="bold">
<property><h:dataTable></property>
</emphasis> or <emphasis
role="bold">