Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3650

Double Value Conversion with requestLocale=de

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.3
    • Fix Version/s: 2.5.12
    • Labels:
      None
    • Environment:

      Tomcat 6/7, Windows 7

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukaszlenart Lukasz Lenart
                Reporter:
                ithoughts Tim Dellas
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified