p:keyFilter not working as expected in Firefox
问题 I'm able to enter both the digits and special characters for the p input text. How to restrict the field that can accept only digits? in all the browsers? <p:message for="longitude" display="text"><p:autoUpdate/></p:message> <p:inputText id="longitude" maxlength="18" style="width: 50%;" value="#{areaMB.longitude}"> <p:keyFilter regEx="/[0-9]/i" /> </p:inputText> Browser Chrome Version 81.0.4044.113 (64-bit) - Only Digits are being able to enter in the field Browser IE Version 11.0.9600 - Only