Author: msorokin
Date: 2008-03-07 09:13:26 -0500 (Fri, 07 Mar 2008)
New Revision: 6624
Modified:
trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
Log:
http://jira.jboss.com/jira/browse/RF-1690
Macrosubstitution description was added
Modified: trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2008-03-07 14:13:22
UTC (rev 6623)
+++ trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml 2008-03-07 14:13:26
UTC (rev 6624)
@@ -161,7 +161,38 @@
<listitem>
<para><property>Client</property> - component updates
after its value changed through JavaScript API. </para>
</listitem>
- </itemizedlist>
+ </itemizedlist>
+
+ <para>
+ You can also use macrosubstitution in both Client and Ajax modes,
+ which allows you to pass
+
<emphasis><property>"minValue"</property></emphasis>,
+
<emphasis><property>"maxValue"</property></emphasis>and
+
<emphasis><property>"Value"</property></emphasis>
+ to the facet that is responsible for displaying information on the progress bar,
using
+ <emphasis><property>{minValue}</property></emphasis>,
+ <emphasis><property>{maxValue}</property></emphasis> and
+ <emphasis><property>{Value}</property></emphasis>syntax.
+ See the example.
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<progressBar:progressBar value="#{bean.incValue1}"
+ minValue="400"
+ maxValue="900">
+ <h:outputText value="Min value is {minValue}, current value is {value},
max value is {maxValue}"></h:outputText>
+</progressBar:progressBar>
+ ...]]> </programlisting>
+ <figure>
+ <title>Macrosubstitution</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
fileref="images/progressbar_macrosubs.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
<!-- End. Details of Usage-->