Home

 

Create the Web project

We create a dynamic Web project named RAD75JSFWeb with JSF and JPA support:

  1. Create the project :

    Project name RAD75JSFWeb
    Target Runtime WebSphere Application Server v7.0
    Dynamic Web Module version 2.5
    EAR Membership Add project to an EAR, and type RAD75JSFEAR as EAR Project Name
    Configuration JavaServer Faces v1.2 Project,

  2. Click Modify.

  3. In the Project Facets dialog :

    • Select Faces support (base), Faces support (enhanced components), Java Persistence, JavaServer Faces (preselected), JSTL, WebSphere Web (Co-existence) and WebSphere Web (Extended).

    • Click OK. The configuration changes to <custom>.

  4. Click Next, accept the context root, and select Generate deployment descriptor.

  5. For JPA Facet:
    • Select the ITSOBANKderby connection that was defined for the JPA sample application. Click Connect if the connection is not active.
    • Select Use implementation provided by the server runtime, Discover annotated classes automatically, and Create orm.xml.
    • Click Next.

  6. For JSF Capabilities, select Server Supplied JSF Implementation, and accept the other defaults (such as /WEB-INF/faces-config.xml).

  7. Click Finish and the project is created.

  8. Switch to the Web perspective when prompted.

  9. Close the Technology Quickstarts.

  10. You can review and change the project facets in the Properties dialog of the project by selecting...

    Project | Properties | Facets