Lionel wrote:
> Newman, John W wrote:
>> Stripes simply uses NumberFormat under the hood, that is where this
>> behavior is coming from. So it's either a jdk bug or not a bug at
>> all.
>
> It is not a bug, it's people who don't respect the standards.
> It's the same with the french locale which can't be used to parse floats.
> Who in france uses the coma as decimal separator ??
> Nobody.
> This makes BigDecimal, Float, Double converters impossible to use as is.
>
> Could be usefull to have an alternative locale to parse numbers when the
> default fails.
>
OK, Stripes uses the NumberFormat class with the specific Locale by
default, during number type conversion. So is the NumberFormatter
automatically called when writing the values out? It does not seem to be
at the moment. I also tried to format the value using the taglib
explicitly, which seems to format the negative number as "-1", not "1-".
Should it be as simple as
<ss:format value="-1" var="test" formatType="number"/>
<c:out value="${test}"/>
When browsing in a RTL language.
Thanks,
Martin
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users