dev@javaserverfaces.java.net

[API] Converter(s).getAsString()

From: Matthias Wessendorf <matzew_at_apache.org>
Date: Thu, 17 May 2007 20:01:19 -0700

Hi,

I pass in a Number (Integer) to a converter, let's say DoubleConverter
and I get a classcastexception.

the RI does:
try {
            return (Float.toString(((Float) value).floatValue()));
        }

MyFaces does:
try
        {
            return Double.toString(((Number)value).doubleValue());
        }

Shouldn't the RI use Number as well ?

-Matthias

http://fisheye5.cenqua.com/browse/~raw,r=1.21/javaserverfaces-sources/jsf-api/src/javax/faces/convert/DoubleConverter.java

-- 
Matthias Wessendorf
http://tinyurl.com/fmywh
further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com