[richfaces-svn-commits] JBoss Rich Faces SVN: r5865 - in trunk/sandbox/ui/progressBAR/src/main: resources/org/richfaces/renderkit/html/js and 1 other directory.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Wed Feb 6 08:35:29 EST 2008
Author: andrei_exadel
Date: 2008-02-06 08:35:29 -0500 (Wed, 06 Feb 2008)
New Revision: 5865
Modified:
trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java
trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js
Log:
last portion of fixs
Modified: trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java
===================================================================
--- trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java 2008-02-06 13:12:11 UTC (rev 5864)
+++ trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java 2008-02-06 13:35:29 UTC (rev 5865)
@@ -349,12 +349,13 @@
ComponentVariables variables = ComponentsVariableResolver.getVariables(
this, component);
String clientId = component.getClientId(context);
+ String styleClass = (String) variables.getVariable("styleClass");
writer.startElement("div", component);
getUtils().writeAttribute(
writer,
"class",
"rich-progress-bar "
- + (String) variables.getVariable("styleClass"));
+ + (styleClass != null ? styleClass : ""));
getUtils().writeAttribute(writer, "id", clientId);
getUtils().writeAttribute(writer, "style",
variables.getVariable("style"));
Modified: trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js
===================================================================
--- trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js 2008-02-06 13:12:11 UTC (rev 5864)
+++ trunk/sandbox/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js 2008-02-06 13:35:29 UTC (rev 5865)
@@ -59,7 +59,7 @@
if (!data['enabled']) { this.disable(); }
this.updateClassName($(this.id + ":complete"), data['completeClass'], "rich-progress-bar-base");
this.updateClassName($(this.id + ":remain"), data['remainClass'], "rich-progress-bar-base");
- this.updateClassName($(this.id), data['styleClass'], "rich-progress-bar-base");
+ this.updateClassName($(this.id), data['styleClass'], "rich-progress-bar");
if (this.options.pollinterval != data['interval']) {
this.options.pollinterval = data['interval'];
More information about the richfaces-svn-commits
mailing list