myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: [NumberConverter] percentage vs. percent
Date Wed, 14 Mar 2007 15:32:24 GMT
Yeah,
I checked the code of the RI NumberConverter and MyFaces.
Since both pass the TCK, percent is fine.

Question is: Why is the RI doc wrong ? :)

On 3/14/07, Zdeněk Sochor <zdenek.sochor@ataco.cz> wrote:
> Hi,
>   according to JSF 1.1 spec (section 9.4.4) percent is right one.
>
> Regards,
>   Zdenek
>
> Matthias Wessendorf napsal(a):
>
> > The tlddoc for the NumberConverter type says:
> >
> > Specifies how the number string will be formatted and parsed. Valid
> > values are "number", "currency", and "percentage". Default value is
> > "number".
> >
> > but, in the code there is a check for "percent" instead:
> >  else if (_type.equals("percent"))
> >        {
> >            return NumberFormat.getPercentInstance(lokale);
> >        }
> >
> > am I missing something? I was thinking to actually see the usage of
> > "percentage" ...
> >
> > Thx,
> > Matthias
> >
>
>


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

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