Author: artdaw
Date: 2008-03-25 12:10:30 -0400 (Tue, 25 Mar 2008)
New Revision: 7180
Modified:
trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
Log:
http://jira.jboss.com/jira/browse/RF-1690 - description review
Modified: trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2008-03-25 16:09:00
UTC (rev 7179)
+++ trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2008-03-25 16:10:30
UTC (rev 7180)
@@ -21,10 +21,10 @@
<entry>component-type</entry>
<entry>org.richfaces.ProgressBar</entry>
</row>
- <!--row>
+ <row>
<entry>component-class</entry>
- <entry></entry>
- </row-->
+
<entry>org.richfaces.component.html.HtmlProgressBar</entry>
+ </row>
<row>
<entry>component-family</entry>
<entry>org.richfaces.ProgressBar</entry>
@@ -65,14 +65,31 @@
<title>Details of Usage</title>
<para>
As it was mentioned above, the <emphasis
role="bold"><property><rich:progressBar></property>
</emphasis>
- component displays the status of the ongoing process. The component has a
number of key attributes.
+ component displays the status of the ongoing process.
</para>
- <para>
- The
<emphasis><property>"value"</property></emphasis>
attribute sets the current value of the process. Status of the process is calculated
basing on <emphasis><property>
"value"</property></emphasis> attribute.
- </para>
+ <para>
+ Status of the process is calculated basing on values of the following attributes:
+ <itemizedlist>
+ <listitem>
+ <para>
+
<emphasis><property>"value"</property></emphasis>
attribute sets the current value of the process
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+
<emphasis><property>"minValue"</property></emphasis>
(default value – "0") sets minimal value for
+ the <emphasis
role="bold"><property><rich:progressBar></property></emphasis>
to start rendering
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+
<emphasis><property>"minValue"</property></emphasis>
(default value – "0") sets maximum value for
+ the <emphasis
role="bold"><property><rich:progressBar></property></emphasis>
to finish rendering
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
- <para> The <emphasis
role="bold"><property><rich:progressBar></property>
</emphasis> starts and finishes rendering its state being governed by
<emphasis><property>"minValue"</property></emphasis>
(default value – "0")
- and
<emphasis><property>"maxValue"</property></emphasis>
(default value is "100") attributes relatively. See the following
example.</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -80,7 +97,8 @@
<programlisting role="XML"><![CDATA[...
<rich:progressBar value="#{bean.incValue}" minValue="50"
maxValue="400"/>
...]]> </programlisting>
- <para>
+
+ <!--para>
The <emphasis><property>
"label"</property></emphasis> attribute is responsible for
displaying informational
data, information on the progress bar, if it's not displayed using
children components.
If this attribute is not set and the children components are not used either, no
textual information
@@ -93,26 +111,53 @@
<programlisting role="XML"><![CDATA[...
<rich:progressBar value="#{bean.incValue}" id="progrs"
label="{value}%"/>
...]]></programlisting>
-<para>
+
+ <para>
Displaying information on a progress bar can be also performed using
- <property><h:outputText></property> within
+ <emphasis
role="bold"><property><h:outputText></property></emphasis>
within
<emphasis
role="bold"><property><rich:progressBar></property>
</emphasis> tags passing the progress value to the value of the JSF tag.
</para>
+<para>
+<emphasis role="bold">Example:</emphasis>
+</para>
+
+<programlisting role="XML"><![CDATA[...
+<rich:progressBar value="#{bean.incValue1}">
+<h:outputText value="#{bean.incValue1}"/>
+</rich:progressBar>
+...]]> </programlisting-->
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
-
- <programlisting role="XML"><![CDATA[...
+ <para>
+ There are two ways to display information on a progress bar:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>Using <emphasis><property>
"label"</property></emphasis> attribute</para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:progressBar value="#{bean.incValue}" id="progrs"
label="bean.incValue1"/>
+...]]></programlisting>
+ </listitem>
+
+ <listitem>
+ <para>Using <emphasis
role="bold"><property><h:outputText
/></property></emphasis></para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
<rich:progressBar value="#{bean.incValue1}">
<h:outputText value="#{bean.incValue1}"/>
</rich:progressBar>
-...]]> </programlisting>
-
-
-
- <para>
+...]]> </programlisting>
+ </listitem>
+
+ </itemizedlist>
+
+
+ <!--para>
The <emphasis><property>
"progressVar"</property></emphasis> attribute serves to
provide an option for a
value substitution on the page. It defines a variable that contains the
data taken from
@@ -122,14 +167,16 @@
attribute is to provide a way to use the data placed into the
<emphasis><property>"value"</property></emphasis>
attribute.
Please study carefully the following code example:
+ </para-->
-
-
- </para>
<para>
+ The
<emphasis><property>"progressVar"</property></emphasis>
attribute defines request scoped variable that could be used
+ for substitution purpose. This variable contains the data taken from
<emphasis><property>"value"</property></emphasis>
attribute.
+ Please, study carefully the following example.
+ </para>
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
-
<programlisting role="XML"><![CDATA[...
<rich:progressBar value="#{bean.incValue1}"
enabled="#{bean.enabled1}" id="progrs1"
progressVar="progress">
<h:outputText value="{progress}%"/>
@@ -137,16 +184,27 @@
...]]> </programlisting>
- <para>
- In the shown example
- <emphasis><property>
"progressVar"</property></emphasis> attribute
+ <!--para>
+ In the shown example <emphasis><property>
"progressVar"</property></emphasis> attribute
gets the "progress" value which contains data taken from
<emphasis><property>"value"</property></emphasis>
attribute of a
<emphasis
role="bold"><property><rich:progressBar></property>
</emphasis>
and transfers the received data to the "value" attribute of
<property><h:outputText></property>, to make the data appear on
the page.
+ </para-->
+
+ <para>
+ In the shown example <emphasis><property>
"progressVar"</property></emphasis> attribute
+ defines a variable "progress" with the value taken from
<emphasis><property>"value"</property></emphasis>
+ attribute of the <emphasis
role="bold"><property><rich:progressBar></property></emphasis>
component.
+ The "progress" variable performs substitution passing the
current value of a progress to the
+
<emphasis><property>"value"</property></emphasis>
attribute of the
+ <emphasis
role="bold"><property><h:outputText></property></emphasis>.
+ This is how the current value of a progress appears on
+ the label of <emphasis
role="bold"><property><rich:progressBar></property></emphasis>.
</para>
-<!--Macrosubs-->
+
+ <!--Macrosubs-->
<para>
The <emphasis
role="bold"><property><rich:progressBar></property>
</emphasis>
@@ -173,7 +231,8 @@
<rich:progressBar value="#{bean.incValue1}" minValue="400"
maxValue="900">
<h:outputText value="Min value is {minValue}, current value is {value},
max value is {maxValue}"/>
</rich:progressBar>
- ...]]> </programlisting>
+...]]> </programlisting>
+ <para>This is a result:</para>
<figure>
<title>Macrosubstitution</title>
<mediaobject>
@@ -184,15 +243,24 @@
</figure>
<!--END of Macrosubs-->
<!-- Parameters-->
- <para>
+ <!--para>
The
<emphasis><property>"parameters"</property></emphasis>
is also a special attribute that can be used for substitutional purposes.
All you need is to define a value of your own parameter
(e.g parameters="param:'#{bean.incValue1}'")
and you can use it to pass the data.
- </para>
+ </para-->
+
<para>
+ The
<emphasis><property>"parameters"</property></emphasis>
+ is also a special attribute that defines parameters for substitution in the
label.
+ All you need is to define a value of your own parameter
+ (e.g parameters="param:'#{bean.incValue1}'")
+ and you can use it to pass the data.
+ </para>
+
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -206,18 +274,22 @@
<!-- END Parameters-->
-
-
-
- <para> The
<emphasis><property>"interval"</property></emphasis>attribute
defines the frequency of status polling. Polling is active while the component is
operational. </para>
+ <para>
+ The
<emphasis><property>"interval"</property></emphasis>
attribute defines the frequency of status polling.
+ </para>
<para>
+ Polling is active while the
<emphasis><property>"enabled"</property></emphasis>
attribute is "true".</para>
+ <para>
<emphasis role="bold">Example:</emphasis>
- </para>
-
+ </para>
<programlisting role="XML"><![CDATA[...
-<rich:progressBar value="#{bean.incValue}" id="progrs"
interval="900"/>
+<rich:progressBar value="#{bean.incValue}" id="progrs"
interval="900" enabled="true"/>
...]]> </programlisting>
+ <para>
+ With the help of
<emphasis><property>"timeout"</property></emphasis>
attribute you can define the waiting time on a particular request.
+ If a response is not received during this time the request is aborted.
+ </para>
@@ -640,7 +712,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="CSS"><![CDATA[<rich:progressBar
value="#{bean.incValue1}" styleClass="myClass"/>
+ <programlisting role="XML"><![CDATA[<rich:progressBar
value="#{bean.incValue1}" styleClass="myClass"/>
]]></programlisting>
<para>This is a result:</para>