Hi,
I have tried the following code.
DecimalFormat numberFormat = new DecimalFormat("###.##"); // pattern
according to DecimalFormat api.
doubleField.setNumberFormat(numberFormat);
now even thou I put values other that of format 000.00 its validation
come to true.
T & R,
Hiren
On 2/1/2011 6:20 PM, Gilberto wrote:
Hi, Hiren!
You can use the NumberField[1] control or any of the**subclasses:
DoubleField, IntegerField, LongField.
Regards,
Gilberto
[1]http://click.apache.org/docs/extras-api/org/apache/click/extras/control/NumberField.html
2011/2/1 Hiren Patel <[email protected]
<mailto:[email protected]>>
Hi,
I need a format to validate my double field value.
My double field format is 5,2 in database.
What and how I set the value on the double field to validate
against this format.
Thanks,
Hiren