Author: atsebro
Date: 2009-07-24 14:33:17 -0400 (Fri, 24 Jul 2009)
New Revision: 15010
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/comboBox.xml
Log:
RF-7586: rich:comboBox component description review
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml
===================================================================
---
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml 2009-07-24
18:19:00 UTC (rev 15009)
+++
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/comboBox.desc.xml 2009-07-24
18:33:17 UTC (rev 15010)
@@ -3,14 +3,14 @@
<sectioninfo>
<keywordset>
<keyword>rich:comboBox</keyword>
- </keywordset>
+ </keywordset>
<releaseinfo>3.2.0</releaseinfo>
</sectioninfo>
<section>
<title>Description</title>
- <para>The <emphasis role="bold">
- <property><rich:comboBox></property>
- </emphasis> is a component, that provides editable combo box element on a
page.</para>
+ <para>
+ The <emphasis
role="bold"><property><rich:comboBox></property></emphasis>
is a component creates combobox element with built-in Ajax capability.
+ </para>
<figure>
<title><emphasis
role="bold"><property><rich:comboBox></property></emphasis>
component</title>
<mediaobject>
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/comboBox.xml
===================================================================
---
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/comboBox.xml 2009-07-24
18:19:00 UTC (rev 15009)
+++
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/comboBox.xml 2009-07-24
18:33:17 UTC (rev 15010)
@@ -43,18 +43,12 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it could be used on a page:
</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
<programlisting role="XML"><![CDATA[...
<rich:comboBox value="#{bean.state}"
suggestionValues="#{bean.suggestions}" />
...]]></programlisting>
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
<programlisting role="JAVA"><![CDATA[import
org.richfaces.component.html.HtmlComboBox;
...
HtmlComboBox myComboBox = new HtmlComboBox();
@@ -86,9 +80,6 @@
<itemizedlist>
<listitem>
<para>Using the
<emphasis><property>"suggestionValues"</property></emphasis>
attribute, that defines the suggestion collection</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
<programlisting role="XML"><![CDATA[...
<rich:comboBox value="#{bean.state}"
suggestionValues="#{bean.suggestions}" />
...]]></programlisting>
@@ -98,9 +89,7 @@
Using the <emphasis
role="bold"><property><f:selectItem
/></property></emphasis> or <emphasis role="bold">
<property><f:selectItems
/></property></emphasis> JSF components.
</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
+
<programlisting role="XML"><![CDATA[...
<rich:comboBox value="#{bean.state}"
valueChangeListener="#{bean.selectionChanged}">
<f:selectItems value="#{bean.selectItems}"/>
@@ -127,9 +116,7 @@
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>
@@ -149,9 +136,7 @@
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.
</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
+
<programlisting role="XML"><![CDATA[...
<rich:comboBox value="#{bean.state}"
suggestionValues="#{bean.suggestions}" selectFirstOnUpdate="false"
/>
...]]></programlisting>
@@ -175,9 +160,7 @@
<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>
@@ -197,9 +180,7 @@
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}" defaultLabel="Select a city..."
disabled="true" />
...]]></programlisting>
@@ -215,18 +196,8 @@
</mediaobject>
</figure>
<para>
- The
- <emphasis>
- <property>
- "enableManualInput"
- </property>
- </emphasis>
- attribute enables/disables input field, so when
- <code>
- enableManualInput = "false"
- </code>,
- user can only pick the value manually and has no possibility to type in the value
- (default value is "false").
+ The
<emphasis><property>"enableManualInput"</property></emphasis>
attribute enables/disables input field, so when <code>enableManualInput =
"false"</code>,
+ user can only pick the value manually and has no possibility to type in the value
(default value is "false").
</para>
<!--para>
The <emphasis
role="bold"><property><rich:comboBox></property></emphasis>
component provides the possibility to use
@@ -944,8 +915,7 @@
<section>
<title>Relevant Resources Links</title>
<para>
- <ulink
url="http://livedemo.exadel.com/richfaces-demo/richfaces/comboBox.js...
RichFaces LiveDemo page </ulink> you can see an example of <emphasis
role="bold"><property><rich:comboBox></property></emphasis>
usage
- and sources for the given example.
- </para>
+ Visit the <ulink
url="http://livedemo.exadel.com/richfaces-demo/richfaces/comboBox.js...
page</ulink> at RichFaces LiveDemo for examples of component usage and their
sources.
+ </para>
</section>
</section>
\ No newline at end of file