Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35170117D5 for ; Thu, 21 Aug 2014 07:28:33 +0000 (UTC) Received: (qmail 92146 invoked by uid 500); 21 Aug 2014 07:28:33 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 92123 invoked by uid 500); 21 Aug 2014 07:28:33 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 92113 invoked by uid 99); 21 Aug 2014 07:28:32 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2014 07:28:32 +0000 Date: Thu, 21 Aug 2014 07:28:32 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-3650) Double Value Conversion with requestLocale=de MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-3650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14105121#comment-14105121 ] Lukasz Lenart commented on WW-3650: ----------------------------------- I introduced some changes but now I see some side effects like problem with rounding value: {noformat} Expected :percentage must be between 0.1 and 10.1, current value is 100.0123. Actual :percentage must be between 0.1 and 10.1, current value is 100.012. {noformat} I think the best option is to leave current internal converters unchanged but add possibility to implement converters for primitives by user. > 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)