Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 7. Conversion and Validation > Implementing Custom Converter and Valida...

Implementing Custom Converter and Validator Tags

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>


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint