dev@javaserverfaces.java.net

Re: Overriding Converter

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Sun, 25 Mar 2007 21:40:55 -0700

Matthias Wessendorf wrote:
> Hi,
>
> using the following:
>
> <converter>
> <converter-id>javax.faces.Integer</converter-id>
> <converter-class>
> org.apache.myfaces.trinidadinternal.convert.IntegerConverter</converter-class>
>
> </converter>
>
>
> works, when you wire a property to Integer. The "default" converter in
> that case is the mentioned. But, when using "int" instead of Integer
> the default converter is "javax.faces.convert.IntegerConverter".
>
> Class type = binding.getType(context.getELContext());
> says => int
>
> (I also tried using the <cinverter-for-class>, same)
>
> (JSF RI 1.2.x)
>
>
> In MyFaces 1.1.x and Trinidad, it works. For int and Integer the
> Trinidad IntegerConverter is used.
>
> thx,
> M
>
Thanks for pointing this out.

Please log an issue.