JSF SSN converter demo
How to get this to work in your own pageThis demo does not require you to enter an SSN, if you do not enter an SSN it will return to the same page without giving an error. However if you do enter some values for the SSN it will call the validator to validate the SSN. The input field here requires you to enter the SSN without any dashes, because we are not using the SSNConverter companion class.
<h:inputText value="#{ssnBean.ssn}">
<f:validator validatorId="com.manorrock.jsf.ssn.SSNValidator"/>
</h:inputText>
Actual demo