Hi Tomas, If my understanding of your problem is right (I had the same problem a week ago), the solution is:
DecimalFormatSymbols symbols = new DecimalFormatSymbols(); symbols.setDecimalSeparator('.'); NumberFormat priceFormat = new DecimalFormat("########0.00", symbols); priceFormat.setMinimumFractionDigits(2); Did ----- Original Message ----- From: "Tomáš Drenčák" <[EMAIL PROTECTED]> To: "Tapestry users" <tapestry-user@jakarta.apache.org> Sent: Thursday, September 29, 2005 11:07 PM Subject: Re: Floating Number "delocalization" > Not sure, but "." in pattern means localized decimal separator (e.g.".", > ","). So if you define \. you have just char "." not separator inpattern and > therefore number is translated as integer... > I have tried this in component annotation (###\.###) and it's justshowing \ > in the number string... Maybe doing something wrong... :( > 2005/9/29, Kent Tong <[EMAIL PROTECTED]>:> Tomáš Drenčák <tomas.drencak <at> > gmail.com> writes:>> > I have following problem. In slovak language we have > "," (floating> > comma) as decimal separator, in english there's "." > (floating point)> > as decimal separator. But it's common practise that > everybody use "."> > as decimal separator in slovak. How can I change this > separator to "."> > even I have slovak locale? I need this to work with > tranlator prefix> > (in TextField component translator binding)?>> Have you > tried:>> <binding name="translator" > value="translator:number,pattern=#\.0"/>>> --> Author of a book for learning > Tapestry (www.agileskills2.org/EWDT)>>> > ---------------------------------------------------------------------> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]>> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]