Estou usando rich:jquery para máscara, porém ele cria, já olhei vários exemplos e estão parecidos.
<!doctypehtmlpublic"-//w3c//dtd html 4.0 transitional//en"><%@tagliburi="http://java.sun.com/jsf/core"prefix="f"%><%@tagliburi="http://java.sun.com/jsf/html"prefix="h"%><!--RichFacestaglibrarydeclaration--><%@tagliburi="http://richfaces.org/a4j"prefix="a4j"%><%@tagliburi="http://richfaces.org/rich"prefix="rich"%><html><head><scripttype="text/javascript"src="jquery/jquery-1.2.6.js"></script><scripttype="text/javascript"src="/jsf/resources/jquery.maskedinput-1.2.1.js"></script><title>RichFacesjQuery</title></head><body><f:view><h:form><h:panelGridcolumns="2"><h:column><h:outputTextvalue="CPF:"/></h:column><h:column><h:inputTextid="cpf"size="15"><rich:jQueryselector="#cpf"query="mask('[CPF removido]')"timing="onload"/></h:inputText></h:column></h:panelGrid></h:form></f:view></body></html>