[richfaces-svn-commits] JBoss Rich Faces SVN: r13985 - in trunk/docs/userguide/en/src/main: resources/images and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri May 1 08:12:30 EDT 2009


Author: atsebro
Date: 2009-05-01 08:12:30 -0400 (Fri, 01 May 2009)
New Revision: 13985

Added:
   trunk/docs/userguide/en/src/main/resources/images/progressBar_pc2.png
Modified:
   trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
Log:
RF-5953: how to change  background image for <rich:progressBar>

Modified: trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml	2009-04-30 22:31:06 UTC (rev 13984)
+++ trunk/docs/userguide/en/src/main/docbook/included/progressBar.xml	2009-05-01 12:12:30 UTC (rev 13985)
@@ -715,6 +715,25 @@
     </figure>  
     
     <para>As it could be seen on the picture above, background color of the remained part of progress area was changed.</para>
+        
+        <para>
+              In order to change background image for the <emphasis role="bold"> <property>&lt;rich:progressBar&gt;</property></emphasis> it is necessary to create a CSS class with the same name as predefined one 
+              (see the tables <link linkend="pBclasses">above</link>) and change <code>background-image</code> CSS property for it: 
+        </para>
+        <programlisting role="CSS"><![CDATA[...
+.rich-progress-bar-uploaded {
+background-image : url(images/accept.gif);
+}
+...]]></programlisting> 
+        <para>This is the result:</para>
+        <figure>
+              <title>Redefining background image for the &lt;rich:progressBar&gt; </title>
+              <mediaobject>
+                    <imageobject>
+                          <imagedata fileref="images/progressBar_pc2.png"/>
+                    </imageobject>
+              </mediaobject>
+        </figure>
     
     
   </section>

Added: trunk/docs/userguide/en/src/main/resources/images/progressBar_pc2.png
===================================================================
(Binary files differ)


Property changes on: trunk/docs/userguide/en/src/main/resources/images/progressBar_pc2.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the richfaces-svn-commits mailing list