Author: andrei_exadel
Date: 2008-03-17 11:27:52 -0400 (Mon, 17 Mar 2008)
New Revision: 6864
Modified:
trunk/ui/progressBAR/src/main/java/org/richfaces/component/UIProgressBar.java
trunk/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java
Log:
RF-2541
Modified: trunk/ui/progressBAR/src/main/java/org/richfaces/component/UIProgressBar.java
===================================================================
---
trunk/ui/progressBAR/src/main/java/org/richfaces/component/UIProgressBar.java 2008-03-17
15:17:20 UTC (rev 6863)
+++
trunk/ui/progressBAR/src/main/java/org/richfaces/component/UIProgressBar.java 2008-03-17
15:27:52 UTC (rev 6864)
@@ -248,7 +248,7 @@
* @return result
*/
public Number getNumber(Object v) {
- Number result = new Integer(0);
+ Number result = null;
if (v != null) {
try {
if (v instanceof String) { // String
@@ -259,7 +259,7 @@
|| (n instanceof Float)) {
result = n.floatValue();
} else if (n instanceof Integer || n instanceof Long) { //
Integer
- result = n.intValue();
+ result = n.longValue();
}
}
} catch (Exception e) {
Modified:
trunk/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java
===================================================================
---
trunk/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java 2008-03-17
15:17:20 UTC (rev 6863)
+++
trunk/ui/progressBAR/src/main/java/org/richfaces/renderkit/AbstractProgressBarRenderer.java 2008-03-17
15:27:52 UTC (rev 6864)
@@ -608,7 +608,7 @@
* @return result
*/
public Number getNumber(Object v) {
- Number result = new Integer(0);
+ Number result = null;
if (v != null) {
try {
if (v instanceof String) {
@@ -619,7 +619,7 @@
|| n instanceof Float) {
result = n.floatValue();
} else if (n instanceof Integer || n instanceof Long) {
- result = n.intValue();
+ result = n.longValue();
}
}
} catch (Exception e) {
Show replies by date