1 Reply Latest reply on Jul 30, 2009 3:43 PM by oneworld95

    rich:jQuery mask for numbers

    oneworld95

      How do you use the jQuery mask to only allow numeric input with 2 digits before the decimal, and one after? In other words, allow 99.9 and 9.9 to be entered.

        • 1. Re: rich:jQuery mask for numbers
          oneworld95

          From my research, this isn't possible: You can't have an optional first digit. So I've placed this JSF converter inside the inputtext:

          <f:convertNumber maxFractionDigits="1" maxIntegerDigits="2" type="number"/>


          It throws the necessary error.