struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Doubleday (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-2349) localized conversion from number to string broken
Date Fri, 01 Feb 2008 15:22:44 GMT

    [ https://issues.apache.org/struts/browse/WW-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43141#action_43141
] 

Dennis Doubleday commented on WW-2349:
--------------------------------------

At Rene's suggestion, I created a separate XWork bug that addresses my comment above about
double/Double differences:

http://jira.opensymphony.com/browse/XW-606

> localized conversion from number to string broken
> -------------------------------------------------
>
>                 Key: WW-2349
>                 URL: https://issues.apache.org/struts/browse/WW-2349
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.0.11
>            Reporter: Sebastian
>            Assignee: Rene Gielen
>             Fix For: 2.1.1
>
>
> Situation:
> Locale is set to de_DE.
> Action contains a property 
> private Double percentage;
> with getters/setters.  The corresponding page contains a "textfield" tag for this property.
It only accepts a "," (comma) as a decimal separator due to the set locale.
> But when the Double property is preset to a certain value and the page rendered afterwards,
the textfield is filled with a number using the "." (dot) as decimal separator, instead of
comma. 
> In short: parsing of numbers is localized, formatting not. This is inconsistent.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message