Author: cluts
Date: 2008-09-01 03:16:00 -0400 (Mon, 01 Sep 2008)
New Revision: 10257
Modified:
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
Log:
RF-4300 - corrected code example.
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2008-08-31 23:23:23 UTC
(rev 10256)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2008-09-01 07:16:00 UTC
(rev 10257)
@@ -127,7 +127,7 @@
</para>
<programlisting role="JAVA"><![CDATA[...
- <h:form>
+ <h:form>
<rich:tree style="width:300px" value="#{library.data}"
var="item" nodeFace="#{item.type}">
<rich:treeNode type="artist"
iconLeaf="/images/tree/singer.png" icon="/images/tree/singer.png">
<h:outputText value="#{item.name}" />
@@ -198,7 +198,7 @@
</para>
<programlisting role="JAVA"><![CDATA[...
- <h:form>
+ <h:form>
<rich:tree style="width:300px" value="#{library.data}"
var="item" nodeFace="#{item.type}">
<rich:treeNode type="artist"
iconLeaf="/images/tree/singer.png" icon="/images/tree/singer.png"
rendered="#{item.exist}">
@@ -282,7 +282,7 @@
</f:facet>
<f:facet name="iconCollapsed">
<h:graphicImage value="/images/tree/singer.png" />
- </f:facet>
+ </f:facet>
<f:facet name="iconExpanded">
<h:graphicImage value="/images/tree/singer.png" />
</f:facet>
@@ -379,7 +379,7 @@
</para>
<programlisting role="XML"><![CDATA[...
-<h:form>
+<h:form>
<rich:tree style="width:300px" value="#{library.data}"
var="item" nodeFace="#{item.type}">
<rich:treeNode type="artist"
iconLeaf="/images/tree/singer.png" icon="/images/tree/singer.png">
<h:outputText value="#{item.name}" />
@@ -440,7 +440,7 @@
<emphasis
role="bold">Example:</emphasis>
</para>
<programlisting role="JAVA"><![CDATA[
-nodeFace="#{data.name != 'param-value' ? 'artist' :
'album'}"
+nodeFace="#{data.name != 'param-value' ? 'artist' :
'album'}"
]]></programlisting>
<para>There are some essential points in a <emphasis>
<property>"nodeFace"</property>
@@ -519,7 +519,7 @@
</para>
<programlisting role="XML"><![CDATA[...
-<h:form>
+<h:form>
<rich:tree style="width:300px" value="#{library.data}"
var="item" nodeFace="#{item.type}">
...
<rich:treeNode type="album"
iconLeaf="/images/tree/album.gif" icon="/images/tree/album.gif"
@@ -613,7 +613,7 @@
</f:facet>
<f:facet name="iconCollapsed">
<h:graphicImage value="/images/tree/singer.png" />
- </f:facet>
+ </f:facet>
<f:facet name="iconExpanded">
<h:graphicImage value="/images/tree/singer.png" />
</f:facet>
@@ -749,7 +749,7 @@
</emphasis> these zones completely correspond to tree
nodes. So, all
dragging nodes should be marked with <emphasis>
<property>"dragType"</property>
- </emphasis> attribute.
+ </emphasis> attribute.
Then, to mark zone(-s), where the dragging node
could be dropped, pass the type of dragging node to the
<emphasis>
<property>"acceptedTypes"</property>
@@ -783,8 +783,8 @@
</para>
<programlisting role="XML"><![CDATA[...
-<h:form>
- <rich:tree style="width:300px"
value="#{libraryAjaxTree.data}" nodeFace="#{item.type}"
var="item" dropListener="#{libraryAjaxTree.processDrop}"
dragIndicator=":treeDragIndicator">
+<h:form>
+ <rich:tree style="width:300px"
value="#{libraryAjaxTree.data}" nodeFace="#{item.type}"
var="item" dragIndicator=":treeDragIndicator"
dropListener="#{libraryAjaxTree.processDrop}">
<rich:treeNode type="artist"
icon="/images/tree/group.png" iconLeaf="/images/tree/group.png"
acceptedTypes="album">
<h:outputText value="#{item.name}" />
</rich:treeNode>