Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How set Max number and Min number in FloatItem

    Hi,

    I have a FloatItem but only allow to enter value from 1 to 99.9.
    Can advise me how to validate?
    Last edited by wakalah; 10 Oct 2010, 19:11.

    #2
    I found this solution.
    final FloatRangeValidator floatRangeValidator = new FloatRangeValidator();
    floatRangeValidator.setMax(99);
    floatRangeValidator.setMin(0);
    floatRangeValidator.setErrorMessage("Only allow 0 to 99");

    Comment

    Working...
    X