So far we have covered many of the features of JSF. However, our example application does not actually save any data yet. In this section, we will cover how JavaServer Faces and the Java Persistence API can be easily integrated to save user input to a database.
We will also cover additional JSF and JPA features. Regarding JSF, we will cover how to perform some logic in the server before navigating to another page, and how to automatically populate a managed bean's property through the
@ManagedProperty annotation. As far as JPA, we will cover how to automatically generate primary keys.
Like we have seen in this chapter, JSF managed beans are nothing but standard JavaBeans. In Chapter 5, we saw that JPA uses standard JavaBeans ...