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

后端 未结 5 2444
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:59

    The following Masked Input Plugin is the original jquery plugin that is being used by Primefaces , you can find much more information about its usage, also there are several p:input-mask code example in this PDF PrimeFaces: More Input Elements look at page 24

提交回复
热议问题