Author: ochikvina
Date: 2009-04-30 04:43:05 -0400 (Thu, 30 Apr 2009)
New Revision: 13930
Modified:
trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml
Log:
Modified: trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml 2009-04-30
08:19:01 UTC (rev 13929)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml 2009-04-30
08:43:05 UTC (rev 13930)
@@ -11,8 +11,8 @@
<h:messages globalOnly="true" styleClass="message" />
<rich:panel>
<f:facet name="header">rich:tree</f:facet>
- <p>rich:tree is built from a simple org.richfaces.model.TreeNode
- model</p>
+ <h4>Case 1. rich:tree is built from a simple org.richfaces.model.TreeNode
+ model</h4>
<h:form>
<rich:tree value="#{tree.stationNodes}" var="station">
<rich:treeNode>
@@ -21,7 +21,7 @@
</rich:tree>
</h:form>
- <p>A simple rich:tree from a local XML file</p>
+ <h4>Case 2. A simple rich:tree from a local XML file</h4>
<h:form>
<rich:tree id="treeXML" value="#{tree.data}"
var="vardata">
<rich:treeNode>
@@ -33,9 +33,9 @@
</rich:tree>
</h:form>
-
+
<br></br>
- <h2>Case 3. Tree built with treeNodesAdaptors</h2>
+ <h4>Case 3. Tree built with treeNodesAdaptors</h4>
<p>Using the <rich:treeNodesAdaptor> means that the typical tree
hierarchy should be built directly in the component tree.<br></br>
</p>
<h:form>
@@ -59,7 +59,7 @@
</h:form>
<br></br>
- <h2>Case 4. Tree built from XML (simple example)</h2>
+ <h4>Case 4. Tree built from XML (simple example)</h4>
<p>The <code>org.richfaces.model.TreeNode</code> interface, which is
used in following case, accepts data worked with
<code>org.richfaces.component.xml.XmlTreeDataBuilder</code> class and renders
it as tree nodes.</p>
<h:form>
<rich:tree id="tree"
@@ -69,8 +69,19 @@
<h:outputText value="#{vardata.text}" />
</rich:treeNode>
</rich:tree>
- </h:form>
+ </h:form>
+ <br></br>
+ <h4>Case 5. The tree with
<code>org.richfaces.TreeRowKeyConverter</code> usage</h4>
+
+ <h:form>
+ <rich:tree value="#{treeBean.data}" var="node"
switchType="ajax"
rowKeyConverter="org.richfaces.TreeRowKeyConverter">
+ <rich:treeNode ajaxSingle="true">
+ <h:outputText value="#{node}"/>
+ </rich:treeNode>
+ </rich:tree>
+ </h:form>
+
</rich:panel>
</ui:define>
</ui:composition>
Show replies by date