How to restrict an input to a variable amount of numbers only with PrimeFaces inputMask element

后端 未结 5 2446
Happy的楠姐
Happy的楠姐 2021-02-20 05:35

I need to define something similar to this regex:

[0-9]{1, 5}

On a PrimeFaces element:



        
5条回答
  •  难免孤独
    2021-02-20 05:50

    You could use a validator. Or the validaterange and define a minimum and maximum.

提交回复
热议问题