[
https://issues.apache.org/jira/browse/WW-3650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14096749#comment-14096749
]
ASF GitHub Bot commented on WW-3650:
------------------------------------
GitHub user lukaszlenart opened a pull request:
https://github.com/apache/struts/pull/21
Locale aware converters
Basically this PR introduces new converters which are `Locale` aware - they
will convert values based on current `Locale` provided by `LocaleProvider`
This cover issues
- WW-3650
- WW-3171
- WW-3184
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/struts feature/locale-aware-converters
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/struts/pull/21.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21
----
commit dfb5203ea7010516ae7aa02889936392a982ab3a
Author: Lukasz Lenart <[email protected]>
Date: 2014-08-14T08:39:13Z
Defines new interface to implement specialized internal converters
commit b195fb3af7d44409dccdb94e675c1a7ace99daab
Author: Lukasz Lenart <[email protected]>
Date: 2014-08-14T08:39:35Z
Adds new internal converter of Double to String
commit fe329f50242b17f109d3e80c4213f012ce2d950a
Author: Lukasz Lenart <[email protected]>
Date: 2014-08-14T08:39:52Z
Uses the new internal converters and adds new test case
----
> Double Value Conversion with requestLocale=de
> ---------------------------------------------
>
> Key: WW-3650
> URL: https://issues.apache.org/jira/browse/WW-3650
> Project: Struts 2
> Issue Type: Bug
> Components: Core Interceptors, Plugin - Tags
> Affects Versions: 2.2.3
> Environment: Tomcat 6/7, Windows 7
> Reporter: Tim Dellas
> Assignee: Lukasz Lenart
> Priority: Minor
> Fix For: 2.5
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> When using the german locale, s:textbox (and supposedly also other tags)
> don't use localization for Double values. Effect: in a form that prints a
> double value to a s:textfield with value="doubleVarName", the double value of
> 1.0 is printed out while it should be 1,0 with german locale. If the same
> form is sent to an action, the params interceptor interprets the 1.0 somehow
> differently and stores 10.0 in the double field "doubleVarName".
> I don't find another hack for me other than forcing english locale, which is
> okay for my app but might not be okay for other developers. (My first
> bugreport, hope it's fine)
--
This message was sent by Atlassian JIRA
(v6.2#6252)