Hai,
I am using SmartGwt Java. To format the price using keyPressFilter, Please suggest any regular expression. It will accept only 0-9 and single decimal only.
Now I am using KeyPress handler. In this if it is empty (default) set this value "0.00", using TextItem.setEmptyDisplayValue("0.00"). So First time it will accept single decimal eventhough there is another decimal present("0.00").
Give solution for this issue.
Thanks in advance.
Regards,
Sathya.
I am using SmartGwt Java. To format the price using keyPressFilter, Please suggest any regular expression. It will accept only 0-9 and single decimal only.
Now I am using KeyPress handler. In this if it is empty (default) set this value "0.00", using TextItem.setEmptyDisplayValue("0.00"). So First time it will accept single decimal eventhough there is another decimal present("0.00").
Give solution for this issue.
Thanks in advance.
Regards,
Sathya.
Comment