Web Application Development: Creating a JSF Project From an Existing Web Project

This document describes the following:


1. Creating a New JSF Project From an Existing Web Project

Using OEPE, you can create a new JSF project from an existing Web project if the existing project meets the following criteria:

  1. The source project is a non-Eclipse project and does not contain any Eclipse-specific files or folders.

  2. The source project's WebContent folder is not the project root.

  3. Somewhere in its directory hierarchy the source project contains a directory with a subdirectory called WEB-INF, which in turn contains a file called web.xml.

To create your project, follow this procedure:

  • Right-click the Project Explorer and select New > Project from the drop-down menu. This will open the New Project dialog.

  • Select Web > Dynamic Web Project from Existing Source from the list, as Figure 1 shows, and then click Next.This will open the New Web Project dialog.



    Figure 1.
    New Project Dialog


  • On the New Web Project > Project Location dialog that Figure 2 shows, specify your exising project's location, provide a name for your new project, select the compiler compliance level, select Oracle WebLogic Server 11gR1 (10.3.2) or later as your target runtime, and then click Next to continue.



    Figure 2.
    Selecting Project Location


  • On the next New Web Project > Java Settings screen that Figure 3 shows, either accept the default Java settings for your project or customize them, and then click Finish.



    Figure 3.
    Specifying Java Settings


Upon completion, the new project from the existing source is created and is configured with the following facets:
  • JSF 1.2

  • JSTL 1.2

  • jst.web 2.5 (depends on the version set in web.xml)

  • jst.java 5.0 (depends on the compiler compliance level selected)

  • wls.web 10.3 (depends on the server selected)


2. Related Information