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
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
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
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-
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
> =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
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.
-
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
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
9 matches
Mail list logo