Ideally, we'll add a section on text validation to the tutorial, and
an example such as this could go there.
On Jun 25, 2009, at 9:42 AM, Sandro Martini wrote:
Hi Greg,
I've tried what you suggested me and (as usual) all works good, many
thanks !!
What do you think to add this portion of code (for example) inside the
TextInputValidatorTest class (i think many users expect a feature like
this, and could search in this class ...) ?
// the following line of code already exist in the source
textinputFloatRange.setValidator(new
FloatRangeValidator(0.3f, 2000f));
// TODO: new code, to add
// optional, force a TextInput with strict currency validation
// (with this enabled, wrong chars will not be accepted nor
displayed)
textinputFloatRange.getStyles().put("strictValidation", true);
Thanks,
Sandro