Author: andrei_exadel
Date: 2008-04-16 10:07:45 -0400 (Wed, 16 Apr 2008)
New Revision: 7873
Modified:
trunk/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java
Log:
fix component
Modified:
trunk/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java
===================================================================
---
trunk/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java 2008-04-16
13:19:45 UTC (rev 7872)
+++
trunk/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java 2008-04-16
14:07:45 UTC (rev 7873)
@@ -84,11 +84,10 @@
*/
public String getForcedState(FacesContext context, UIComponent component) {
String forcedState = null;
- Map params = context.getExternalContext().getRequestParameterMap();
+ Map<String, String> params = context.getExternalContext()
+ .getRequestParameterMap();
if (params.containsKey(UIProgressBar.FORCE_PERCENT_PARAM)) {
- String[] str = (String[]) params
- .get(UIProgressBar.FORCE_PERCENT_PARAM);
- forcedState = str[0];
+ forcedState = params.get(UIProgressBar.FORCE_PERCENT_PARAM);
}
return forcedState;
}
Show replies by date