Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The custom converters and validator classes that you saw in the preceding sections have a shortcoming: They do not allow attributes. For example, we may want to specify a separator character for the credit card converter so that the page designer can choose whether to use dashes or spaces to separate the digit groups. Specifically, we would like page designers to use tags, such as the following:
<h:outputText value="#{payment.card}">
<corejsf:convertCreditcard separator="-"/>
</h:outputText>