6 Replies Latest reply on Apr 24, 2012 9:15 AM by Gen Sys

    inputNumberSpinner behaviour on wrong input

    Jiri Pejchal Newbie

      I have a table with items that are edited with modal panel. The modal panel contains inputNumberSpinner. When an user enters a non valid value: -9 (too low), 500 (greater than maxValue) and clicks somewhere else the value is set to previous correct value with javascript.

      The problem:
      User is editing previously entered item, he changes the value to an incorrect one and clicks immediately on 'Save' button of the modal window -> he doesn't get notification that his entered value is invalid, the value is changed to previous correct one (-> and validation phase is therefore successful) and saved to a database.

      So actually for example maxValue is saved without user knowing.

      How would you solve it?