FYI

---------- Forwarded message ----------
From: Matthias Wessendorf <[EMAIL PROTECTED]>
Date: May 17, 2007 8:01 PM
Subject: [API] Converter(s).getAsString()
To: [EMAIL PROTECTED]


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


--
Matthias Wessendorf
http://tinyurl.com/fmywh

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

Reply via email to