Author: msorokin
Date: 2009-03-23 07:17:03 -0400 (Mon, 23 Mar 2009)
New Revision: 13091
Added:
trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml
Log:
https://jhttps://jira.jboss.org/jira/browse/RF-6419
tree page
Added: trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml
(rev 0)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/tree.xhtml 2009-03-23
11:17:03 UTC (rev 13091)
@@ -0,0 +1,70 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:s="http://jboss.com/products/seam/taglib"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ template="layout/template.xhtml">
+
+<ui:define name="body">
+
+
+ <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>
+
+
+<h:form>
+
+<rich:tree value="#{tree.stationNodes}" var="station">
+
+ <rich:treeNode>
+
+ <h:outputText value="#{station}" />
+
+ </rich:treeNode>
+
+</rich:tree>
+
+
+
+</h:form>
+
+<p> A simple rich:tree from a local XML file </p>
+
+<h:form>
+<rich:tree id="treeXML" value="#{tree.data}"
var="vardata">
+
+ <rich:treeNode>
+
+ <h:outputText value="#{vardata.attributes['name']}" />
+
+ <h:outputText value="#{vardata.attributes['date']}" />
+
+ <h:outputText value="#{vardata.attributes['time']}" />
+
+ <h:outputText value=" #{vardata.text}" />
+
+ </rich:treeNode>
+
+</rich:tree>
+
+
+
+
+</h:form>
+
+
+
+ </rich:panel>
+
+
+</ui:define>
+</ui:composition>