[richfaces-svn-commits] JBoss Rich Faces SVN: r5076 - in trunk/sandbox/ui/progressBAR/src/main: templates/org/richfaces and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Dec 28 09:43:54 EST 2007


Author: andrei_exadel
Date: 2007-12-28 09:43:54 -0500 (Fri, 28 Dec 2007)
New Revision: 5076

Modified:
   trunk/sandbox/ui/progressBAR/src/main/config/component/progressBar.xml
   trunk/sandbox/ui/progressBAR/src/main/templates/org/richfaces/progressBar.jspx
Log:
RF-1691 - Add styleClass attr for component

Modified: trunk/sandbox/ui/progressBAR/src/main/config/component/progressBar.xml
===================================================================
--- trunk/sandbox/ui/progressBAR/src/main/config/component/progressBar.xml	2007-12-28 14:38:00 UTC (rev 5075)
+++ trunk/sandbox/ui/progressBAR/src/main/config/component/progressBar.xml	2007-12-28 14:43:54 UTC (rev 5076)
@@ -29,6 +29,11 @@
 		&html_universal_attributes;
 		&html_events;
 		<property>
+			<name>styleClass</name>
+			<classname>java.lang.String</classname>
+			<description>CSS class that defines style for progress bar</description>
+		</property>
+		<property>
 			<name>completeClass</name>
 			<classname>java.lang.String</classname>
 			<description>CSS class that defines style for progress line rendering</description>

Modified: trunk/sandbox/ui/progressBAR/src/main/templates/org/richfaces/progressBar.jspx
===================================================================
--- trunk/sandbox/ui/progressBAR/src/main/templates/org/richfaces/progressBar.jspx	2007-12-28 14:38:00 UTC (rev 5075)
+++ trunk/sandbox/ui/progressBAR/src/main/templates/org/richfaces/progressBar.jspx	2007-12-28 14:43:54 UTC (rev 5076)
@@ -22,6 +22,7 @@
     
     variables.setVariable("percent",percent);
     variables.setVariable("style",(String)component.getAttributes().get("style"));
+    variables.setVariable("styleClass",(String)component.getAttributes().get("styleClass"));
     
     String permanent = (String)component.getAttributes().get("permanent");
     
@@ -46,7 +47,7 @@
 } else {
  ]]>
 </jsp:scriptlet>
-<div class="rich-progress-bar" style="#{style}" id="#{clientId}">
+<div class="rich-progress-bar #{styleClass}" style="#{style}" id="#{clientId}">
 	<div class="#{remainClass} rich-progress-bar-base" style="#{style}">
 		<f:call name="encodePersent"/>
 	</div>




More information about the richfaces-svn-commits mailing list