12Implementing Enumeration Attributes in a Java EE Web App
In this chapter, we show how to build a back-end web application with enumeration attributes, using Java with JPA and JSF. In addition to the topic of enumeration attributes, we also show how to deal with multi-valued attributes.
12.1New Issues
Compared to the Validation App discussed in Chapter 9 we have to deal with the following new issues:
- Enumeration datatypes have to be defined in a suitable way as part of the model code.
- Enumeration attributes have to be defined in model classes and handled in the user interface with the help of suitable choice widgets.
In terms of coding, the new issues are:
1.In the model code we have to take care of
a.enumerations to be defined in the ...
Get Web Applications with Javascript or Java 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.