Author: artdaw
Date: 2008-03-10 13:31:53 -0400 (Mon, 10 Mar 2008)
New Revision: 6658
Modified:
trunk/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
Log:
http://jira.jboss.com/jira/browse/RF-1216 - component review
Modified: trunk/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml 2008-03-10
17:31:16 UTC (rev 6657)
+++ trunk/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml 2008-03-10
17:31:53 UTC (rev 6658)
@@ -24,6 +24,7 @@
<title>Key Features</title>
<itemizedlist>
<listitem>Highly customizable look and feel</listitem>
+ <listitem>Disablement support</listitem>
<listitem>Browser like selection</listitem>
<listitem>Smart user-defined positioning</listitem>
<listitem>Multicolumn suggestion popup list</listitem>
Modified: trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-03-10 17:31:16 UTC
(rev 6657)
+++ trunk/docs/userguide/en/src/main/docbook/included/comboBox.xml 2008-03-10 17:31:53 UTC
(rev 6658)
@@ -13,7 +13,6 @@
<thead>
<row>
<entry>Name</entry>
-
<entry>Value</entry>
</row>
</thead>
@@ -48,9 +47,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-<rich:comboBox value="#{bean.state}"
valueChangeListener="#{bean.selectionChanged}" >
- <f:selectItems value="#{bean.selectItems}"/>
-</rich:comboBox>
+<rich:comboBox value="#{bean.state}"
suggestionValues="#{bean.suggestions}" />
...]]></programlisting>
</section>
<section>
@@ -89,7 +86,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
-<rich:comboBox value="#{bean.state}"
valueChangeListener="#{bean.selectionChanged}"
suggestionValues="#{bean.suggestions}" />
+<rich:comboBox value="#{bean.state}"
suggestionValues="#{bean.suggestions}" />
...]]></programlisting>
<itemizedlist>
<listitem>
@@ -118,7 +115,13 @@
The <emphasis><property>
"directInputSuggestions"</property></emphasis> attribute
defines, how the first value from the suggested one appears in an input field.
If it's "true" the first value appears with the
suggested part highlighted.
</para>
-
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:comboBox value="#{bean.state}"
suggestionValues="#{bean.suggestions}" directInputSuggestions="true"
/>
+...]]></programlisting>
+ <para>This is a result:</para>
<figure>
<title><emphasis role="bold">
<property><rich:comboBox></property>
@@ -131,12 +134,16 @@
</figure>
<para>
-
+ The <emphasis><property>
"selectFirstOnUpdate"</property></emphasis> attribute
defines if the first value from suggested is selected in a popup list.
+ If it's "false" nothing is selected in the list before
a user hovers some item with the mouse. Also nothing could be selected after the mouse is
out the list.
</para>
<para>
- The <emphasis><property>
"selectFirstOnUpdate"</property></emphasis> attribute
defines if the first value from suggested is selected in a popup list.
- If it's "false" nothing is selected in the list before
a user hovers some item with the mouse. Also nothing could be selected after the mouse is
out the list.
- </para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:comboBox value="#{bean.state}"
suggestionValues="#{bean.suggestions}" selectFirstOnUpdate="false"
/>
+...]]></programlisting>
+ <para>This is a result:</para>
<figure>
<title><emphasis role="bold">
<property><rich:comboBox></property>
@@ -147,15 +154,61 @@
</imageobject>
</mediaobject>
</figure>
-
-
- <para>
+
+ <!--para>
The <emphasis><property>
"filterNewValues"</property></emphasis> attribute defines
the appearance of values in the list.
If it's "true" only the part of a list, which
satisfies the prefix entered appears in a popup list.
- If it's "false" all values appear in the popup
list. But the list is scrolled to the first value that satisfies the prefix.
+ If it's "false" all values appear in the popup
list and the list is scrolled to the first value that satisfies the prefix.
+ </para-->
+ <para>
+ The
<emphasis><property>"defaultLabel"</property></emphasis>
attribute defines the default label of the input element. Simple example is placed below.
</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:comboBox value="#{bean.state}"
suggestionValues="#{bean.suggestions}" defaultLabel="Select a city..."
/>
+...]]></programlisting>
+ <para>This is a result:</para>
+ <figure>
+ <title><emphasis role="bold">
+ <property><rich:comboBox></property>
+ </emphasis> with <emphasis><property>
"defaultLabel"</property></emphasis>
attribute.</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/comboBox5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ With the help of the
<emphasis><property>"disabled"</property></emphasis>
attribute you can disable the whole
+ <emphasis
role="bold"><property><rich:comboBox></property></emphasis>
component. See the following example.
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:comboBox value="#{bean.state}"
suggestionValues="#{bean.suggestions}" disabled="true" />
+...]]></programlisting>
+ <para>This is a result:</para>
+ <figure>
+ <title><emphasis role="bold">
+ <property><rich:comboBox></property>
+ </emphasis> with <emphasis><property>
"disabled"</property></emphasis> attribute.</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/comboBox6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
<para>
+ The <emphasis
role="bold"><property><rich:comboBox></property></emphasis>
component provides the possibility to use
+ specific event attribute <emphasis><property>
"onlistcall"</property></emphasis> which is fired before the
list opening.
+ </para>
+
+ <para>
The <emphasis
role="bold"><property><rich:comboBox></property></emphasis>
component allows to use sizes attributes:
<itemizedlist>
<listitem>
@@ -167,10 +220,8 @@
</listitem>
</itemizedlist>
</para>
- <para>
- The <emphasis><property>
"defaultLabel"</property></emphasis> attribute defines the
default label of the input element.
- </para>
- <para>
+
+ <!--para>
The <emphasis
role="bold"><property><rich:comboBox></property></emphasis>
component provides to use
specific event attributes:
<itemizedlist>
@@ -181,7 +232,10 @@
<emphasis><property>
"onchange"</property></emphasis> is fired both with
onselected and after the input value changed
</listitem>
</itemizedlist>
- </para>
+ </para-->
+
+
+
</section>
<section>
<title>JavaScript API</title>