[richfaces-svn-commits] JBoss Rich Faces SVN: r4905 - branches/3.1.x/docs/userguide/en/src/main/docbook/included.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Dec 18 14:41:00 EST 2007
Author: artdaw
Date: 2007-12-18 14:40:59 -0500 (Tue, 18 Dec 2007)
New Revision: 4905
Modified:
branches/3.1.x/docs/userguide/en/src/main/docbook/included/listShuttle.xml
Log:
http://jira.jboss.com/jira/browse/RF-1174 - edit Details of Usage according to dev project. Add 'convertor' attribute, move/copy controls set
Modified: branches/3.1.x/docs/userguide/en/src/main/docbook/included/listShuttle.xml
===================================================================
--- branches/3.1.x/docs/userguide/en/src/main/docbook/included/listShuttle.xml 2007-12-18 19:01:49 UTC (rev 4904)
+++ branches/3.1.x/docs/userguide/en/src/main/docbook/included/listShuttle.xml 2007-12-18 19:40:59 UTC (rev 4905)
@@ -45,9 +45,12 @@
<property><rich:listShuttle></property>
</emphasis> component consists of the following parts: <itemizedlist>
<listitem>two <property>item lists</property> (source and target). List consists of
- items. Each item has three different representations: common, selected, active</listitem>
+ items. Each item has three different representations: common, selected, active</listitem>
+ <listitem>optional <property>caption</property> element</listitem>
<listitem><property>optional ordering controls set</property> is a set of controls
- that performs reordering</listitem>
+ that performs reordering</listitem>
+ <listitem><property>copy/moving controls set</property> is a set of controls, which
+ performs moving/copying items between lists</listitem>
</itemizedlist>
</para>
<para> The <emphasis>
@@ -59,6 +62,12 @@
<para> The <emphasis>
<property>"var" </property>
</emphasis> could be shared between both collections to defined lists on the page.</para>
+ <para>
+ The <emphasis>
+ <property>"converter" </property>
+ </emphasis> attribute is used to convert component data to a particular component's value.
+ For example, when you select items in a list, a converter is used to format a set of objects to a strings to be displayed.
+ </para>
<para>Captions could be added to a list only after it was defined as a <emphasis>
<property>"sourceCaption"</property>
</emphasis> and <emphasis>
@@ -101,7 +110,8 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-<rich:listShuttle var="item" sourceValue="#{bean.source}" targetValue="#{bean.target}" sourceSelection="#{bean.sourceSelection}" targetSelection="#{bean.targetSelection}">
+<rich:listShuttle var="item" sourceValue="#{bean.source}" targetValue="#{bean.target}" sourceSelection="#{bean.sourceSelection}" targetSelection="#{bean.targetSelection}"
+ converter="listShuttleconverter">
...
<f:facet name="topControl">
<h:outputText value="Move to top" />
@@ -118,15 +128,58 @@
<rich:orderingList>
...
]]></programlisting>
+
+ <!-- copy/move control set -->
+ <para>The <emphasis role="bold">
+ <property><rich:listShuttle></property>
+ </emphasis>component also provides 4 predefined controls in <property>move/copy
+ controls set</property> for moving or copying items between source and target lists.
+ Every control has possibility to be disabled. </para>
+ <para>A <property>move/copy
+ controls set</property> could be defined with
+ <emphasis><property>"copyControlLabel"</property></emphasis>, <emphasis><property>"removeControlLabel"</property></emphasis>,
+ <emphasis><property>"copyAllControlLabel"</property></emphasis>, <emphasis><property>"removeAllControlLabel"</property></emphasis>attributes.
+ </para>
+ <para>It is also possible to use
+ <emphasis>
+ <property>"copyControl" </property>
+ </emphasis>,
+ <emphasis>
+ <property>"removeControl" </property>
+ </emphasis>,
+ <emphasis>
+ <property>"copyAllControl" </property>
+ </emphasis>,
+ <emphasis>
+ <property>"removeAllControl" </property>
+ </emphasis>
+ facets in order to replace the default controls with facets content.
+ </para>
+ <!-- The following facets currently do not work-->
+ <!--<emphasis>
+ <property>"copy_disabled" </property>
+ </emphasis>, -->
+ <!--<emphasis>
+ <property>"remove_disabled" </property>
+ </emphasis>, -->
+ <!--<emphasis>
+ <property>"copyAll_disabled" </property>
+ </emphasis>, -->
+ <!--<emphasis>
+ <property>"removeAll_disabled" </property>
+ </emphasis>-->
-
- <!--para>Controls rendering is based on the <emphasis>
+ <para>Controls rendering is based on the <emphasis>
<property>"controlsType" </property>
</emphasis> attribute. Possible types are <property>button</property> and
- <property>none</property>.</para-->
-
+ <property>none</property>.</para>
+ <note>
+ <para>
+ Currently the button controls type is based on <div> element.
+ </para>
+ </note>
<!-- template wiil be done in 3.2.0 -->
<!--para>The <emphasis role="bold">
<property><rich:listShuttle></property>
More information about the richfaces-svn-commits
mailing list