CHAPTER 11 Field Validation, Formatting, and Translation

This chapter walks you through the process of adding field-level validation, formatting, and translation to portlets. Several different techniques are discussed, including the use of out-of-the-box builders, Java methods, regular expressions, resource bundles, and data definitions. By the end of this chapter, you will have a good understanding of each approach and be able to implement each one in the appropriate scenarios.

The example application discussed in this chapter utilizes one model, a properties file and a Java source file, which are available for download from ibmpressbooks.com/title/9780137134465, under the Chapter 11 folder (instructions for copying these files into your project ...

Get Rapid Portlet Development with WebSphere Portlet Factory: Step-by-Step Guide for Building Your Own Portlets now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.