Author: amarkhel
Date: 2010-12-22 08:01:27 -0500 (Wed, 22 Dec 2010)
New Revision: 20741
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractProgressBar.java
trunk/ui/output/ui/src/main/templates/progressBar.template.xml
Log:
RF-9950 Faces-config: progress bar missing attributes style and styleClass
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractProgressBar.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractProgressBar.java 2010-12-22
07:13:10 UTC (rev 20740)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractProgressBar.java 2010-12-22
13:01:27 UTC (rev 20741)
@@ -138,6 +138,12 @@
@Attribute(hidden = true)
public abstract String getResource();
+ @Attribute
+ public abstract String getStyle();
+
+ @Attribute
+ public abstract String getStyleClass();
+
public void encodeMetaComponent(FacesContext context, String metaComponentId) throws
IOException {
((MetaComponentRenderer) getRenderer(context)).encodeMetaComponent(context, this,
metaComponentId);
}
Modified: trunk/ui/output/ui/src/main/templates/progressBar.template.xml
===================================================================
--- trunk/ui/output/ui/src/main/templates/progressBar.template.xml 2010-12-22 07:13:10 UTC
(rev 20740)
+++ trunk/ui/output/ui/src/main/templates/progressBar.template.xml 2010-12-22 13:01:27 UTC
(rev 20741)
@@ -16,7 +16,9 @@
<cc:implementation>
- <div id="#{clientId}" cdk:passThroughWithExclusions=""
class="#{concatClasses('rf-pb',
component.attributes['styleClass'])}">
+ <div id="#{clientId}" cdk:passThroughWithExclusions=""
+ class="#{concatClasses('rf-pb',
component.attributes['styleClass'])}"
+ style="#{component.attributes['style']}">
<cdk:object name="encoder"
value="#{getEncoder(facesContext, component)}"
type="ProgressBarStateEncoder" />
<cdk:object name="currentState"
value="#{getCurrentState(facesContext, component)}"
type="ProgressBarState" />
Show replies by date