You can try to add docType="html-5.0" in your balise apex:page or you can use standard tag html <input type="Number"> Hope that help.