-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hello guys, i'm newbe here. I'm using zk and I always get an error when I want to make a decimalbox in listcell.
my code :
<listitem self="@{each=payment }" value="@{payment }">
<listcell>
<label value="@{payment.Id }"/>
</listcell>
<listcell>
<decimalbox value="@{payment.price }" />
</listcell>
</listitem>
and the error : MyModel price=123.0000 cannot be converted to class java.math.BigDecimal.
Can you please update What type of variable is this ?price=123.0000
As you can see Java Docs of DecimalBox Its needed BigDecimal
Value may be you are passing wrong value to this column.Please tell me what is your java code otherwise convert your value in BigDecimal
.
this is my class model
public class MyModel {
private Integer Id;
private BigDecimal price= BigDecimals.ZERO;
public class Mymodel(){}
==> getter and setter
}
any one help me?
Asked: 2013-11-11 07:55:05 +0800
Seen: 8 times
Last updated: Nov 15 '13