Im trying to use primefaces <p:inputMask for ip address input but it does not seem to allow me to do this.
I have tried
Code: Select all
<p:inputMask value="#{bean.ip}" mask="999.999.999.999" size="20"/>
but this restricts input to minimum of 3 numeric characters between every ".".
I want it to work for all kind of IP's where example:
"xxx.xx.xxx.x"
"xxx.x.xx.xx"
"xxx.xx.xxx.xxx"
Thanks in advance...
Nish