Based on: https://github.com/jackocnr/intl-tel-input
usage:
Code: Select all
<pe:inputPhone id="txtPhone"
initialCountry="us"
value="#{basicInputPhoneController.phoneNumber}"
formatOnDisplay="true">
<p:ajax event="countrySelect" listener="#{basicInputPhoneController.onCountrySelect}"/>
</pe:inputPhone>