Hello,

I have a form binding definition like this:

        <fb:value id="number" path="number">
           <fd:convertor datatype="decimal"/>
        </fb:value>

And a bean with the corresponding getter and setter methods:

public void setNumber(BigDecimal number)...
public BigDecimal getNumber()...

But when I tried to save my form into the bean I got an conversion exception:

"org.apache.commons.jxpath.JXPathException: Exception trying to create xpath number; Cannot modify property: foo.bar.model.Position.number; Cannot convert value of class java.lang.String to type class java.math.BigDecimal; Cannot convert class java.lang.String to class java.math.BigDecimal"

The value of the form for the field "number" is just an integer value like "3". What can I do, to convert the values from String to BigDecimal corectly? I haven't found any solution.

Thank you.

Regards
Stephan


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to