Re: [s2] number format s:textfield tag

2010-03-31 Thread Rene Gielen
Hi, see http://struts.apache.org/2.1.8.1/docs/formatting-dates-and-numbers.html It is important to know that Struts 2 has always a locale context request for each request, which affects both formating and parsing dates and numbers. The request locale is determined as follows: 1. Request

Re: [s2] number format s:textfield tag

2010-03-30 Thread Juanjo C
Any idea? 2007/10/23 Pedro Herrera pedro_herr...@hotmail.com Hi, I have a currency input field (BigDecimal). In my location the decimal point is comma, eg, 10,00(==10.00) must be permitted. Struts is throwing a message error : Invalid field value for field valor. Thanks Herrera

Re: [s2] number format s:textfield tag

2010-03-30 Thread Eduard Neuwirt
Hi, This is very diffcult issue in struts. First you have to set your locale correctly. Second you have to use in the jsp the correct calls for number formatting. The struts docummenattion explains this point in FAQ (I hold in mind so). Alternatively you can write your own converter for

Re: [s2] number format s:textfield tag

2010-03-30 Thread Greg Lindholm
In my experience it's better to define number (and time) input fields as String and perform the conversion and validation in your action using java.text.NumberFormat . This puts you in control of the process and let's you handle I18N issues that way you want to without fighting Struts. I

[s2] number format s:textfield tag

2007-10-23 Thread Pedro Herrera
Hi, I have a currency input field (BigDecimal). In my location the decimal point is comma, eg, 10,00(==10.00) must be permitted. Struts is throwing a message error : Invalid field value for field valor. Thanks Herrera -- View this message in context: