Hi all
When I have the following in a form and submit I get an error:
<h:outputText value="Double value"/>
<h:inputText value="#{dummy.doubleNumber}">
<f:convertNumber maxFractionDigits="0"/>
</h:inputText>
The error is:
value="#{dummy.doubleNumber}": Can't set property 'doubleNumber' on class
'backing.DummyBacking_$$_javassist_6' to value '123,000,000'.)
The doubleNumber property is a Double.
When debugging the NumberConverter the parsed Object seems to be a Long.
Question: is this the expected behaviour?
Ran into this when implementing a "UnitNumberConverter" which will divide
the number by some unit, like 1000,000 to display numbers in for example
millions.
Cheers,
Micke