Home
Developing a Web application using JSF and JPA
In this section we describe a Web application implemented with JSF and JPA.
We could use a similar technique as we used for the Struts application, and implement a helper class to interact with the session bean. In JSF, for each JSP, a managed bean class is generated. For each action in the JSPs, a method in the managed bean class is invoked. In those methods we could use the helper class to interact with the session bean and retrieve the necessary data.
RAD v7.5 7.5 provides tooling to interact directly with the JPA entities without using a session bean. A helper classed is created for each JPA entity, with methods such as find, create, delete, update, and named query invocation. We use this tooling support for our example.
ibm.com/redbooks