Author: artdaw
Date: 2009-02-13 12:06:06 -0500 (Fri, 13 Feb 2009)
New Revision: 12664
Modified:
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
Log:
https://jira.jboss.org/jira/browse/RF-5083 - The component section was updated according
to info from Forum
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2009-02-13 17:05:16 UTC
(rev 12663)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2009-02-13 17:06:06 UTC
(rev 12664)
@@ -123,11 +123,11 @@
</para>
<para>
When the <emphasis
role="bold"><property><rich:tree></property></emphasis>
component is being rendered
- it iterates through model nodes and renders them using one of its
<property>immediate</property>
+ it iterates over the model nodes and renders them using one of its
<property>immediate</property>
<emphasis
role="bold"><property><rich:treeNode></property></emphasis>
children.
Data property of the current model <code>TreeNode</code> is
exposed using
<emphasis><property>"var"</property></emphasis>
attribute,
- so if <code>var="itemData"</code> you can
refer to that data using <code>#{itemData}</code> syntax.
+ so if <code>var="station"</code> you can
refer to that data using <code>#{station}</code> syntax.
</para>
<para>
In the following example the <emphasis
role="bold"><property><rich:tree></property></emphasis>
is
@@ -173,10 +173,13 @@
</mediaobject>
</figure>
-<para>There is a <code>"XmlTreeDataBuilder"</code>
class
+<para>
+Implementation of the <emphasis
role="bold"><property><rich:tree></property></emphasis>
component
+provides another way to build a tree.
+This approach implies using a
<code>"XmlTreeDataBuilder"</code> class
(<ulink
url="http://labs.jboss.com/file-access/default/members/jbossrichface...
org.richfaces.component.xml.XmlTreeDataBuilder
- </ulink>) that allows transforming XML into structures of objects containing
<code>"XmlNodeData"</code>
+ </ulink>) that allows to transform XML into structures of objects containing
<code>"XmlNodeData"</code>
(<ulink
url="http://labs.jboss.com/file-access/default/members/jbossrichface...
org.richfaces.component.xml.XmlNodeData
</ulink>) instances as data, which could be represented by the
@@ -197,7 +200,7 @@
</feed>
</station>]]></programlisting>
<para>
- Now you need a bean that holds a model nodes:
+ Now you need to create a bean that holds a model nodes:
</para>
<programlisting role="JAVA"><![CDATA[...
private TreeNode data;