Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6419

Localization of PageParameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.7.0
    • 8.0.0-M7
    • wicket
    • None

    Description

      It concerns the reading of PageParameters. They all use the StringValue constructor without passing the Session locale.
      The StringValue will in turn use the systems locale.

      So when I retrieve a _en formatted number (1.000) from my GET-Params, I get a wrong number (1) because my Server runs on a _de machine where a dot is a decimal delimeter.

      I can work around that by again creating a StringValue based on my previous StringValue, but with passing the Session locale.

      Shouldn't it pass the session's locale in first place?

      See here for the PageParameter implementation and here for the StringValue implementation.

      See also:
      http://apache-wicket.1842946.n4.nabble.com/Localization-of-PageParameters-td4678221.html

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              Ravi Knox Ravi Knox
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: