Author: SergeySmirnov
Date: 2007-09-10 18:44:20 -0400 (Mon, 10 Sep 2007)
New Revision: 2854
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simple.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml
Log:
demo update. demo simple example
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simple.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simple.xhtml 2007-09-10
19:44:07 UTC (rev 2853)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/examples/simple.xhtml 2007-09-10
22:44:20 UTC (rev 2854)
@@ -5,12 +5,26 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
+ <style>
+ .col, .col2 {
+ width:50%;
+ vertical-align:top;
+ }
+ </style>
+
+
<h:form>
- <rich:tree style="width:300px"
nodeSelectListener="#{simpleTreeBean.processSelection}"
reRender="selectedNode" ajaxSubmitSelection="true"
toggleOnClick="true" switchType="client"
value="#{simpleTreeBean.treeNode}" var="item">
- </rich:tree>
+ <h:panelGrid columns="2" width="100%"
columnClasses="col1,col2">
+
+ <rich:tree style="width:300px"
nodeSelectListener="#{simpleTreeBean.processSelection}"
+ reRender="selectedNode" ajaxSubmitSelection="true"
switchType="client"
+ value="#{simpleTreeBean.treeNode}" var="item">
+ </rich:tree>
+
+ <h:outputText escape="false" value="Selected Node:
#{simpleTreeBean.nodeTitle}" id="selectedNode" />
+
+ </h:panelGrid>
- <h:outputText value="#{simpleTreeBean.nodeTitle}"
id="selectedNode" />
-
</h:form>
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml 2007-09-10
19:44:07 UTC (rev 2853)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree/simple-tree.xhtml 2007-09-10
22:44:20 UTC (rev 2854)
@@ -7,11 +7,27 @@
xmlns:rich="http://richfaces.org/rich">
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
+
+ <p>RichFaces Tree has a default Data Model that allows to show a simple tree
without creating
+ the set on your own tree model classes. The follwing demo shows how to create a tree
based on the
+ data from the properties file.
+ </p>
+
<div class="sample-container" >
<ui:include src="/richfaces/tree/examples/simple.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
<ui:param name="sourcepath"
value="/richfaces/tree/examples/simple.xhtml"/>
+ <ui:param name="openlabel" value="Open Page Source" />
</ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/tree/examples/simple-tree-data.properties"/>
+ <ui:param name="openlabel" value="Open Data File" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/WEB-INF/src/org/richfaces/demo/tree/SimpleTreeBean.java"/>
+ <ui:param name="openlabel" value="View SimpleTreeBean.java
Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
</div>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree.xhtml 2007-09-10 19:44:07
UTC (rev 2853)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree.xhtml 2007-09-10 22:44:20
UTC (rev 2854)
@@ -13,7 +13,7 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/tree/usage.xhtml"/>
</rich:tab>
- <rich:tab label=""Hello world!" tree">
+ <rich:tab label="Default Tree Model">
<ui:include src="/richfaces/tree/simple-tree.xhtml"/>
</rich:tab>
<ui:include src="/templates/include/tagInfo.xhtml">