Author: artdaw
Date: 2008-03-13 13:14:00 -0400 (Thu, 13 Mar 2008)
New Revision: 6790
Modified:
trunk/docs/userguide/en/src/main/docbook/included/treeNodesAdaptor.xml
Log:
http://jira.jboss.com/jira/browse/RF-552 - code verification
Modified: trunk/docs/userguide/en/src/main/docbook/included/treeNodesAdaptor.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNodesAdaptor.xml 2008-03-13
17:11:03 UTC (rev 6789)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNodesAdaptor.xml 2008-03-13
17:14:00 UTC (rev 6790)
@@ -90,36 +90,36 @@
The
<emphasis><property>"var"</property></emphasis>
attribute is used to access to the current collection element.
</para>
<para>
- The simple example is placed below.
+ The <emphasis
role="bold"><property><rich:treeNodesAdaptor></property></emphasis>
component can be nested without any limitations.
+ See the following example.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:tree adviseNodeOpened="#{treeModelBean.adviseNodeOpened}"
switchType="client">
- <rich:treeNodesAdaptor id="project"
nodes="#{loaderBean.projects}" var="project">
- <rich:treeNode>
- <h:commandLink action="#{project.click}" value="Project:
#{project.name}" />
- </rich:treeNode>
- <rich:treeNodesAdaptor id="srcDir" var="srcDir"
nodes="#{project.srcDirs}">
- <rich:treeNode>
- <h:commandLink action="#{srcDir.click}" value="Source directory:
#{srcDir.name}" />
- </rich:treeNode>
- <rich:treeNodesAdaptor id="pkg" var="pkg"
nodes="#{srcDir.packages}">
- <rich:treeNode>
- <h:commandLink action="#{pkg.click}" value="Package:
#{pkg.name}" />
- </rich:treeNode>
- <rich:treeNodesAdaptor id="class" var="class"
nodes="#{pkg.classes}">
- <rich:treeNode>
- <h:commandLink action="#{class.click}" value="Class:
#{class.name}" />
- </rich:treeNode>
- </rich:treeNodesAdaptor>
- </rich:treeNodesAdaptor>
- </rich:treeNodesAdaptor>
- </rich:treeNodesAdaptor>
- </rich:tree>
-...
-]]></programlisting>
+<rich:tree adviseNodeOpened="#{treeModelBean.adviseNodeOpened}"
switchType="client">
+ <rich:treeNodesAdaptor id="project"
nodes="#{loaderBean.projects}" var="project">
+ <rich:treeNode>
+ <h:commandLink action="#{project.click}" value="Project:
#{project.name}" />
+ </rich:treeNode>
+ <rich:treeNodesAdaptor id="srcDir" var="srcDir"
nodes="#{project.srcDirs}">
+ <rich:treeNode>
+ <h:commandLink action="#{srcDir.click}" value="Source
directory: #{srcDir.name}" />
+ </rich:treeNode>
+ <rich:treeNodesAdaptor id="pkg" var="pkg"
nodes="#{srcDir.packages}">
+ <rich:treeNode>
+ <h:commandLink action="#{pkg.click}" value="Package:
#{pkg.name}" />
+ </rich:treeNode>
+ <rich:treeNodesAdaptor id="class" var="class"
nodes="#{pkg.classes}">
+ <rich:treeNode>
+ <h:commandLink action="#{class.click}" value="Class:
#{class.name}" />
+ </rich:treeNode>
+ </rich:treeNodesAdaptor>
+ </rich:treeNodesAdaptor>
+ </rich:treeNodesAdaptor>
+ </rich:treeNodesAdaptor>
+</rich:tree>
+...]]></programlisting>
</section>
<section>