BigDecimal makes display problems
"WebObjects" <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
Anybody could give me a hint about using the number Formatter in WOComponent correctly please?
I have in MS-SQL server an attribute as Money. in EOModel is BigDecimal
The db saves the numbers correct so Number 6 is 6 and 6,5 is 6,5 in the db.
----------------------------------------------------
I tried the following, but still didnt get it work.
// In Application class.
public Application()
{
super();
Locale.setDefault(Locale.GERMAN);
NSNumberFormatter.setDefaultLocale(Locale.GERMAN);
NSNumberFormatter.setDefaultLocalizesPattern(true);
....
----------------------------------------------------
the WO mashine is English windows the Location is Germany
Browers is IE also German setting
----------------------------------------------------
I tried almost all compinations.
None Formatter, "0", "0.00", "0.##", "0,00", "0,##", and so on.
----------------------------------------------------
The hoped results:
insert 6 keeps 6
insert 6,5 keeps 6,5
----------------------------------------------------
Thanks in advance.
Sako
_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev