Author: SeanRogers
Date: 2011-02-02 01:19:07 -0500 (Wed, 02 Feb 2011)
New Revision: 21380
Added:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute_with_Expression_Language.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/exam-Component_Reference-richtree-nodeType_attribute.png
Removed:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeFace_attribute.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeFace_attribute_with_Expression_Language.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/exam-Component_Reference-richtree-nodeFace_attribute.png
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml
Log:
Updated rich:tree RFPL-984
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml
===================================================================
---
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml 2011-02-02
00:08:05 UTC (rev 21379)
+++
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml 2011-02-02
06:19:07 UTC (rev 21380)
@@ -26,7 +26,7 @@
The <sgmltag><rich:tree></sgmltag> component requires the
<varname>value</varname> attribute to point to the data model for populating
the tree. The data model must be either an
<interfacename>org.richfaces.model.TreeNode</interfacename> interface, an
<varname>org.richfaces.model.TreeDataModel</varname> interface, or a
<interfacename>javax.swing.tree.TreeNode</interfacename> interface. The
<varname>var</varname> attribute declares the variable used for iterating
through the data model, so that child
<sgmltag><rich:treeNode></sgmltag> components can reference each
iteration.
</para>
<para>
- For basic usage, the <sgmltag><rich:tree></sgmltag>
component needs one or more <sgmltag><rich:treeNode></sgmltag>
components to work with the data model.
+ Ideally, the <sgmltag><rich:tree></sgmltag> component needs
one or more <sgmltag><rich:treeNode></sgmltag> components to
work with the data model. However if no
<sgmltag><rich:treeNode></sgmltag> components are provided the
tree creates default nodes instead.
</para>
<example id="exam-Component_Reference-richtree-Basic_usage">
<title>Basic usage</title>
@@ -52,40 +52,35 @@
<section id="sect-Component_Reference-richtree-Appearance">
<title>Appearance</title>
<para>
- Different nodes in the tree can have different appearances, such as node icons,
depending on the type of data the node contains. Use the
<varname>nodeFace</varname> attribute to differentiate the types of nodes; the
node is then rendered according to the
<sgmltag><rich:treeNode></sgmltag> component with the
corresponding <varname>type</varname> attribute. <xref
linkend="exam-Component_Reference-richtree-Appearance" /> shows a
<sgmltag><rich:tree></sgmltag> component with three different
child <sgmltag><rich:treeNode></sgmltag> components defined to
represent three different node appearances. Refer to <xref
linkend="sect-Component_Reference-richtreeNode-Appearance" /> for details on
customizing the appearance of <sgmltag><rich:treeNode></sgmltag>
components.
+ Different nodes in the tree can have different appearances, such as node icons,
depending on the type of data the node contains. Use the
<varname>nodeType</varname> attribute to differentiate the types of nodes; the
node is then rendered according to the
<sgmltag><rich:treeNode></sgmltag> component with the
corresponding <varname>type</varname> attribute. <xref
linkend="exam-Component_Reference-richtree-Appearance" /> shows a
<sgmltag><rich:tree></sgmltag> component with three different
child <sgmltag><rich:treeNode></sgmltag> components defined to
represent three different node appearances. Refer to <xref
linkend="sect-Component_Reference-richtreeNode-Appearance" /> for details on
customizing the appearance of <sgmltag><rich:treeNode></sgmltag>
components.
</para>
- <example id="exam-Component_Reference-richtree-nodeFace_attribute">
- <title><varname>nodeFace</varname> attribute</title>
- <programlisting language="XML" role="XML"><xi:include
parse="text"
href="extras/exam-Component_Reference-richtree-nodeFace_attribute.xml_sample"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <example id="exam-Component_Reference-richtree-nodeType_attribute">
+ <title><varname>nodeType</varname> attribute</title>
+ <programlisting language="XML" role="XML"><xi:include
parse="text"
href="extras/exam-Component_Reference-richtree-nodeType_attribute.xml_sample"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<mediaobject>
<imageobject>
- <imagedata
fileref="images/exam-Component_Reference-richtree-nodeFace_attribute.png"
format="PNG" />
+ <imagedata
fileref="images/exam-Component_Reference-richtree-nodeType_attribute.png"
format="PNG" />
</imageobject>
</mediaobject>
</example>
<para>
- Alternatively, use Expression Language (<acronym>EL</acronym>) with the
<varname>nodeFace</varname> attribute, as shown in <xref
linkend="exam-Component_Reference-richtree-nodeFace_attribute_with_Expression_Language"
/>.
+ Alternatively, use Expression Language (<acronym>EL</acronym>) with the
<varname>nodeType</varname> attribute, as shown in <xref
linkend="exam-Component_Reference-richtree-nodeType_attribute_with_Expression_Language"
/>.
</para>
- <example
id="exam-Component_Reference-richtree-nodeFace_attribute_with_Expression_Language">
- <title><varname>nodeface</varname> attribute with Expression
Language</title>
- <programlisting language="XML" role="XML"><xi:include
parse="text"
href="extras/exam-Component_Reference-richtree-nodeFace_attribute_with_Expression_Language.xml_sample"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <example
id="exam-Component_Reference-richtree-nodeType_attribute_with_Expression_Language">
+ <title><varname>nodeType</varname> attribute with Expression
Language</title>
+ <programlisting language="XML" role="XML"><xi:include
parse="text"
href="extras/exam-Component_Reference-richtree-nodeType_attribute_with_Expression_Language.xml_sample"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
</example>
<para>
- If the <varname>nodeFace</varname> attribute returns null, the node is
rendered as a "<emphasis>typeless</emphasis>" node. The
<emphasis>typeless</emphasis> node is the first child
<sgmltag><rich:treeNode></sgmltag> component with a valid
<varname>rendered</varname> attribute, but without a defined
<varname>type</varname> attribute.
+ If the <varname>nodeType</varname> attribute returns null, the node is
rendered as a "<emphasis>typeless</emphasis>" (or default) node. The
<emphasis>typeless</emphasis> node is the first child
<sgmltag><rich:treeNode></sgmltag> component with a valid
<varname>rendered</varname> attribute, but without a defined
<varname>type</varname> attribute.
</para>
<para>
+ If the <varname>nodeType</varname> attribute is not included and there
are no child <sgmltag><rich:treeNode></sgmltag> components, the
tree constructs a default node itself.
+ </para>
+ <para>
Icons for different nodes and node states can be defined for the whole tree using the
following attributes:
</para>
<variablelist>
<varlistentry>
- <term><varname>icon</varname></term>
- <listitem>
- <para>
- The <varname>icon</varname> attribute points to the icon to use for
any node that contains child nodes.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
<term><varname>iconLeaf</varname></term>
<listitem>
<para>
@@ -102,6 +97,8 @@
</listitem>
</varlistentry>
</variablelist>
+ <!-- TODO not in M6 -->
+ <!--
<para>
Alternatively, use facets with the same names as the attributes to define the icons,
as shown in <xref linkend="exam-Component_Reference-richtree-Icon_facets"
/>. The width of the rendered facet is 16 pixels.
</para>
@@ -109,12 +106,13 @@
<title>Icon facets</title>
<programlisting language="XML" role="XML"><xi:include
parse="text"
href="extras/exam-Component_Reference-richtree-Icon_facets.xml_sample"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
</example>
+ -->
</section>
<section
id="sect-Component_Reference-richtree-Expanding_and_collapsing_tree_nodes">
<title>Expanding and collapsing tree nodes</title>
<para>
- The switching mode for performing submissions is determined by the
<varname>switchType</varname> attribute, which can have one of the following
three values:
+ The mode for performing submissions when nodes are expanded or collapsed is
determined by the <varname>toggleType</varname> attribute, which can have one
of the following three values:
</para>
<variablelist>
<varlistentry>
@@ -142,55 +140,91 @@
</listitem>
</varlistentry>
</variablelist>
+ <para>
+ By default, the event to expand or collapse a tree node is a mouse click. To specify
a different event, use the <varname>toggleNodeEvent</varname> attribute.
+ </para>
+ </section>
- <section id="sect-Component_Reference-richtree-Identifying_nodes">
+ <section id="sect-Component_Reference-richtree-Selecting_tree_nodes">
+ <title>Selecting tree nodes</title>
+ <para>
+ The mode for performing submissions when nodes are selected is determined by the
<varname>selectionType</varname> attribute, which can have one of the
following three values:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><literal>ajax</literal></term>
+ <listitem>
+ <para>
+ This is the default setting. The
<sgmltag><rich:tree></sgmltag> component performs an Ajax form
submission, and only the content of the tree is rendered.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>server</literal></term>
+ <listitem>
+ <para>
+ The <sgmltag><rich:tree></sgmltag> component performs a
common submission, completely re-rendering the page.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>client</literal></term>
+ <listitem>
+ <para>
+ The <sgmltag><rich:tree></sgmltag> component updates on
the client side, re-rendering itself and any additional components listed with the
<varname>render</varname> attribute.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
+ <section id="sect-Component_Reference-richtree-Identifying_nodes">
+ <title>Identifying nodes</title>
+ <para>
+ The <sgmltag><rich:tree></sgmltag> component uses a data
model to represent the node structure on the page. To identify a particular node during a
client request, the model provides unique keys for tree nodes. The
<sgmltag><rich:tree></sgmltag> component can use strings as key
values. These strings may contain special characters that are not allowed by browsers,
such as the left angle bracket (<) and ampersand (&). To allow these
characters in the keys, the following converter is provided:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><classname>org.richfaces.TreeRowKeyConverter</classname></term>
+ <listitem>
+ <para>
+ The <classname>org.richfaces.TreeRowKeyConverter</classname> converter
is used for trees constructed using
<sgmltag><rich:treeNode></sgmltag> components. The key should be
of the type <type>java.lang.String</type>.
+ </para>
+ </listitem>
+ </varlistentry>
+ <!-- TODO not in M5
+ <varlistentry>
+ <term><classname>org.richfaces.TreeAdaptorRowKeyConverter</classname></term>
+ <listitem>
+ <para>
+ The <classname>org.richfaces.TreeAdaptorRowKeyConverter</classname>
converter is used for trees constructed using
<sgmltag><rich:treeNodesAdaptor></sgmltag> components. The key
should be of the type <type>java.lang.String</type>.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><classname>org.richfaces.TreeAdaptorIntegerRowKeyConverter</classname></term>
+ <listitem>
+ <para>
+ The
<classname>org.richfaces.TreeAdaptorIntegerRowKeyConverter</classname>
converter is used for trees constructed using
<sgmltag><rich:treeNodesAdaptor></sgmltag> components, but uses
a numerical key. The key should be of the type
<type>java.lang.Integer</type>.
+ </para>
+ </listitem>
+ </varlistentry>
+ -->
+ </variablelist>
+ <para>
+ To apply a converter to the <sgmltag><rich:tree></sgmltag>
component, define it with the <varname>rowKeyConverter</varname> attribute.
<xref linkend="exam-Component_Reference-richtree-Identifying_nodes" />
demonstrates the use of a converter to identify tree nodes.
+ </para>
+ <example id="exam-Component_Reference-richtree-Identifying_nodes">
<title>Identifying nodes</title>
+ <programlisting language="XML" role="XML"><xi:include
parse="text"
href="extras/exam-Component_Reference-richtree-Identifying_nodes.xml_sample"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<para>
- The <sgmltag><rich:tree></sgmltag> component uses a data
model to represent the node structure on the page. To identify a particular node during a
client request, the model provides unique keys for tree nodes. The
<sgmltag><rich:tree></sgmltag> component can use strings as key
values. These strings may contain special characters that are not allowed by browsers,
such as the left angle bracket (<) and ampersand (&). To allow these
characters in the keys, the following converter is provided:
+ The tree uses the following data model. The model can contain special characters
normally disallowed in web page code.
</para>
- <variablelist>
- <varlistentry>
- <term><classname>org.richfaces.TreeRowKeyConverter</classname></term>
- <listitem>
- <para>
- The <classname>org.richfaces.TreeRowKeyConverter</classname>
converter is used for trees constructed using
<sgmltag><rich:treeNode></sgmltag> components. The key should be
of the type <type>java.lang.String</type>.
- </para>
- </listitem>
- </varlistentry>
- <!-- TODO not in M5
- <varlistentry>
- <term><classname>org.richfaces.TreeAdaptorRowKeyConverter</classname></term>
- <listitem>
- <para>
- The <classname>org.richfaces.TreeAdaptorRowKeyConverter</classname>
converter is used for trees constructed using
<sgmltag><rich:treeNodesAdaptor></sgmltag> components. The key
should be of the type <type>java.lang.String</type>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><classname>org.richfaces.TreeAdaptorIntegerRowKeyConverter</classname></term>
- <listitem>
- <para>
- The
<classname>org.richfaces.TreeAdaptorIntegerRowKeyConverter</classname>
converter is used for trees constructed using
<sgmltag><rich:treeNodesAdaptor></sgmltag> components, but uses
a numerical key. The key should be of the type
<type>java.lang.Integer</type>.
- </para>
- </listitem>
- </varlistentry>
- -->
- </variablelist>
- <para>
- To apply a converter to the <sgmltag><rich:tree></sgmltag>
component, define it with the <varname>rowKeyConverter</varname> attribute.
<xref linkend="exam-Component_Reference-richtree-Identifying_nodes" />
demonstrates the use of a converter to identify tree nodes.
- </para>
- <example id="exam-Component_Reference-richtree-Identifying_nodes">
- <title>Identifying nodes</title>
- <programlisting language="XML" role="XML"><xi:include
parse="text"
href="extras/exam-Component_Reference-richtree-Identifying_nodes.xml_sample"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
- <para>
- The tree uses the following data model. The model can contain special characters
normally disallowed in web page code.
- </para>
- <programlisting language="Java" role="JAVA"><xi:include
parse="text"
href="extras/exam-Component_Reference-richtree-Identifying_nodes.js"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
- </example>
- </section>
+ <programlisting language="Java" role="JAVA"><xi:include
parse="text"
href="extras/exam-Component_Reference-richtree-Identifying_nodes.js"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
</section>
- <!-- TODO not in M5 -->
+ <!-- TODO not in M6 -->
<!--
<section
id="sect-Component_Reference-richtree-Built-in_drag_and_drop">
<title>Built-in drag and drop</title>
@@ -208,16 +242,27 @@
<itemizedlist>
<listitem>
<para>
- The <varname>onexpand</varname> event is triggered when a node is
expanded.
+ The <varname>onnodetoggle</varname> event is triggered when a node is
expanded or collapsed.
</para>
</listitem>
<listitem>
<para>
- The <varname>oncollapse</varname> event is triggered when a node is
collapsed.
+ The <varname>onbeforenodetoggle</varname> event is triggered before a
node is expanded or collapsed.
</para>
</listitem>
<listitem>
<para>
+ The <varname>onselectionchange</varname> event is triggered when a node
is selected.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <varname>onbeforeselectionchange</varname> event is triggered
before a node is selected.
+ </para>
+ </listitem>
+ <!--
+ <listitem>
+ <para>
The <varname>ondragstart</varname> event is triggered when an element
starts being dragged.
</para>
</listitem>
@@ -236,6 +281,7 @@
The <varname>ondragend</varname> event is triggered when an element is
dropped.
</para>
</listitem>
+ -->
</itemizedlist>
<para>
The <sgmltag><rich:tree></sgmltag> component uses the
following server-side listeners:
@@ -243,9 +289,10 @@
<itemizedlist>
<listitem>
<para>
- The <varname>changeExpandListener</varname> listener processes expand
and collapse events.
+ The <varname>toggleListener</varname> listener processes expand and
collapse events.
</para>
</listitem>
+ <!--
<listitem>
<para>
The <varname>dragListener</varname> listener processes drag events.
@@ -256,9 +303,10 @@
The <varname>dropListener</varname> listener processes drop events.
</para>
</listitem>
+ -->
<listitem>
<para>
- The <varname>nodeSelectListener</varname> listener processes the
request when a node is selected.
+ The <varname>selectionChangeListener</varname> listener processes the
request when a node is selected.
</para>
</listitem>
</itemizedlist>
@@ -304,14 +352,14 @@
<section id="sect-Component_Reference-richtreeNode-Basic_usage">
<title>Basic usage</title>
<para>
- The <sgmltag><rich:treeNode></sgmltag> component must be a
child of a <sgmltag><rich:tree></sgmltag> component. It does not
need any attributes declared for basic usage, but should contain the content of the nodes.
Refer to <xref linkend="exam-Component_Reference-richtree-Basic_usage" />
for an example of basic <sgmltag><rich:treeNode></sgmltag>
component usage.
+ The <sgmltag><rich:treeNode></sgmltag> component must be a
child of a <sgmltag><rich:tree></sgmltag> component. It does not
need any attributes declared for basic usage, but can provide markup templates for tree
nodes of particular types. Refer to <xref
linkend="exam-Component_Reference-richtree-Basic_usage" /> for an example of
basic <sgmltag><rich:treeNode></sgmltag> component usage.
</para>
</section>
<section id="sect-Component_Reference-richtreeNode-Appearance">
<title>Appearance</title>
<para>
- Refer to <xref linkend="sect-Component_Reference-richtree-Appearance"
/> for the <sgmltag><rich:tree></sgmltag> component for
details and examples on styling nodes and icons. Icon styling for individual
<sgmltag><rich:treeNode></sgmltag> components uses the same
attributes as the parent <sgmltag><rich:tree></sgmltag>
component: <varname>icon</varname>, <varname>iconLeaf</varname>,
<varname>iconExpanded</varname>, and
<varname>iconCollapsed</varname>. Icon-related attributes specified for child
<sgmltag><rich:treeNode></sgmltag> components overwrite any
global icon attributes of the parent
<sgmltag><rich:tree></sgmltag> component.
+ Refer to <xref linkend="sect-Component_Reference-richtree-Appearance"
/> for the <sgmltag><rich:tree></sgmltag> component for
details and examples on styling nodes and icons. Icon styling for individual
<sgmltag><rich:treeNode></sgmltag> components uses the same
attributes as the parent <sgmltag><rich:tree></sgmltag>
component: <varname>iconLeaf</varname>,
<varname>iconExpanded</varname>, and
<varname>iconCollapsed</varname>. Icon-related attributes specified for child
<sgmltag><rich:treeNode></sgmltag> components overwrite any
global icon attributes of the parent
<sgmltag><rich:tree></sgmltag> component.
</para>
<para>
Use the <varname>rendered</varname> attribute to determine whether the
node should actually be rendered in the tree or not. Using the
<varname>rendered</varname> attribute in combination with the
<sgmltag><rich:treeNode></sgmltag>
<varname>type</varname> attribute can allow further style differentiation
between node content, as shown in <xref
linkend="exam-Component_Reference-richtreeNode-rendered_attribute" />.
@@ -333,8 +381,12 @@
<section id="sect-Component_Reference-richtreeNode-Interactivity">
<title>Interactivity</title>
<para>
- All interactivity with individual nodes, such as expanding and collapsing,
drag-and-drop, and other events handling, is managed by the parent
<sgmltag><rich:tree></sgmltag> component. Refer to <xref
linkend="sect-Component_Reference-richtree-Expanding_and_collapsing_tree_nodes"
/><!--, <xref
linkend="sect-Component_Reference-richtree-Built-in_drag_and_drop" />,-->
and <xref linkend="sect-Component_Reference-richtree-Event_handling" />
for further details.
+ Interactivity with individual nodes, such as expanding, collapsing, and other event
handling, can be managed by the parent
<sgmltag><rich:tree></sgmltag> component. Refer to <xref
linkend="sect-Component_Reference-richtree-Expanding_and_collapsing_tree_nodes"
/><!--, <xref
linkend="sect-Component_Reference-richtree-Built-in_drag_and_drop" />,-->
and <xref linkend="sect-Component_Reference-richtree-Event_handling" />
for further details.
</para>
+ <!-- TODO node interactivity re-definitions - not in M6 -->
+ <para>
+ Use the <varname>expanded</varname> attribute to determine whether the
node is expanded or collapsed.
+ </para>
</section>
<section id="sect-Component_Reference-richtreeNode-Reference_data">
Deleted:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeFace_attribute.xml_sample
===================================================================
---
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeFace_attribute.xml_sample 2011-02-02
00:08:05 UTC (rev 21379)
+++
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeFace_attribute.xml_sample 2011-02-02
06:19:07 UTC (rev 21380)
@@ -1,11 +0,0 @@
-<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}" />
- </rich:treeNode>
- <rich:treeNode type="album" iconLeaf="/images/tree/disc.png"
icon="/images/tree/disc.png">
- <h:outputText value="#{item.title}" />
- </rich:treeNode>
- <rich:treeNode type="song" iconLeaf="/images/tree/song.png"
icon="/images/tree/song.png">
- <h:outputText value="#{item.title}" />
- </rich:treeNode>
-</rich:tree>
Deleted:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeFace_attribute_with_Expression_Language.xml_sample
===================================================================
---
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeFace_attribute_with_Expression_Language.xml_sample 2011-02-02
00:08:05 UTC (rev 21379)
+++
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeFace_attribute_with_Expression_Language.xml_sample 2011-02-02
06:19:07 UTC (rev 21380)
@@ -1,2 +0,0 @@
-<rich:tree value="#{library.data}" var="item"
- nodeFace="#{data.name != 'param-value' ? 'artist' :
'album'}">
Copied:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute.xml_sample
(from rev 21136,
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeFace_attribute.xml_sample)
===================================================================
---
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute.xml_sample
(rev 0)
+++
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute.xml_sample 2011-02-02
06:19:07 UTC (rev 21380)
@@ -0,0 +1,11 @@
+<rich:tree style="width:300px" value="#{library.data}"
var="item" nodeType="#{item.type}">
+ <rich:treeNode type="artist" iconLeaf="/images/tree/singer.png"
icon="/images/tree/singer.png">
+ <h:outputText value="#{item.name}" />
+ </rich:treeNode>
+ <rich:treeNode type="album" iconLeaf="/images/tree/disc.png"
icon="/images/tree/disc.png">
+ <h:outputText value="#{item.title}" />
+ </rich:treeNode>
+ <rich:treeNode type="song" iconLeaf="/images/tree/song.png"
icon="/images/tree/song.png">
+ <h:outputText value="#{item.title}" />
+ </rich:treeNode>
+</rich:tree>
Copied:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute_with_Expression_Language.xml_sample
(from rev 21136,
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeFace_attribute_with_Expression_Language.xml_sample)
===================================================================
---
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute_with_Expression_Language.xml_sample
(rev 0)
+++
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-nodeType_attribute_with_Expression_Language.xml_sample 2011-02-02
06:19:07 UTC (rev 21380)
@@ -0,0 +1,2 @@
+<rich:tree value="#{library.data}" var="item"
+ nodeType="#{data.name != 'param-value' ? 'artist' :
'album'}">
Deleted:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/exam-Component_Reference-richtree-nodeFace_attribute.png
===================================================================
(Binary files differ)
Copied:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/exam-Component_Reference-richtree-nodeType_attribute.png
(from rev 21136,
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/exam-Component_Reference-richtree-nodeFace_attribute.png)
===================================================================
(Binary files differ)