Hello Martin,

yes i did. The converter works partially. For displaying the dot-notification is used. For input the comma notification is used.

Any Idea ?

Martin Gainty schrieb:
did you use xwork DoubleConverter?
@Conversion()
public class ConversionAction implements Action {
  private String convertDouble;

  @TypeConversion(converter = 
"com.opensymphony.xwork2.util.XWorkBasicConverter")
  public void setConvertDouble( String convertDouble ) {
      this.convertDouble = convertDouble;
  }
}
?
http://www.opensymphony.com/xwork/api/com/opensymphony/xwork2/conversion/annotations/TypeConversion.html

Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




Date: Sun, 11 Oct 2009 21:24:57 +0200
From: eduard.neuw...@googlemail.com
To: user@struts.apache.org
Subject: Behaviour of Double conversion

Hi all,

I am facing the following interesting behavior of struts 2.1.8. I am using in action a list containing beans with setting of Double. Additionally I set German locale.

So the value of double will be displayed in the English-Locale for example 5.55, but the conversion of value is done in the German locale so struts2 expects 5,55. As a side effect the value 5.55 interprets struts like 555.

Any Idea ? I thought this issue was already fixed ?

Regards
Eduard



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/171222985/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to