We use <field-validator type="required"> validator to make sure null is
not passed, but if I use a double it does not now validate, it wants a
Double for it to work.
Has there been any changes, or has it always been like this?
also, other validators work ie the min/max below, with the double.
<field name="bean.thePrice">
<field-validator type="required">
<message key="bean.theprice.required">unspecified key</message>
</field-validator>
<field-validator type="double">
<param name="minInclusive">0</param>
<param name="maxInclusive">2999</param>
<message key="bean.theprice.range">unspecified key</message>
</field-validator>
</field>
bean:
..
private double thePrice;
public double getThePrice() {
return thePrice;
}
public void setThePrice(double thePrice) {
this.thePrice = thePrice;
}
..
Cheers Greg