Re: German/Turkey etc decimal use comma in input fields.

2008-02-15 Thread Jeromy Evans
Ned Collyer wrote: Should something like this be in the core? its a couple of lines and ensures internationalisation for BigDecimals (which you should be using for any monetary stuff). I haven't found the code, but xwork apparently has BigDecimal conversion. I'm not sure if the problem is t

Re: German/Turkey etc decimal use comma in input fields.

2008-02-14 Thread Ned Collyer
mal value? > > Also try to set a BigDecimal in your action directly rather than the > property of your AmountDTO. > > Another solution is to provide an AmountDTO converter rather than a > BigDecimal converter.. > -- View this message in context: http://www.nabble.c

Re: German/Turkey etc decimal use comma in input fields.

2008-02-14 Thread Jeromy Evans
Sounds great. Nothing stands out to me. Maybe turn on developer mode to see if there's any errors logged when trying to set the value (struts.devMode=true) Is it possible it can't instantiate an AmountDTO object or call the corresponding getter before setting the BigDecimal value? Also try to

Re: German/Turkey etc decimal use comma in input fields.

2008-02-14 Thread Ned Collyer
will in the same directory as the > class, with an entry: > =example.DecimalConverter > > where is the name of the property name that needs custom > conversion and is the short class name of your action > -- View this message in context: http://www.nabble.com/German-Turkey-etc-decimal-use-

Re: German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Jeromy Evans
This should give you an idea. It's modified from existing code so I haven't tested it. I've decided to use a collection of NumberFormat's. You could use any string -> decimal conversion technique you like. This can be used to an action by created a -conversion.properties will in the same dire

Re: German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Ned Collyer
> =example.DecimalConverter > > where is the name of the property name that needs custom > conversion and is the short class name of your action > -- View this message in context: http://www.nabble.com/German-Turkey-etc-decimal-use-comma-in-input-fields.-tp15473083p154737

Re: German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Ned Collyer
hat's a good idea though. > -- View this message in context: http://www.nabble.com/German-Turkey-etc-decimal-use-comma-in-input-fields.-tp15473083p15473384.html Sent from the Struts - User mailing list archive at Nabble.com. -

Re: German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Jeromy Evans
Ned Collyer wrote: Has anyone fixed this issue, or got an "easy" working implementation. I've read http://www.nabble.com/Struts-2-requires-input-result-on-failed-type-conversion-td11543906.html#a11543906 which seems to be ended rather abruptly when Martin did not get an answer. The default t

German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Ned Collyer
sage in context: http://www.nabble.com/German-Turkey-etc-decimal-use-comma-in-input-fields.-tp15473083p15473083.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi