Previous Next vertical dots separating previous/next from contents/index/pdf

Step 1: Create a JSF Enabled Web Project

In this step you will set up a JSF-enabled web project.

The tasks in this step are to:

Start Workshop

If you haven't started Workshop yet, follow these steps: Start Workshop.

Create a New Workspace (Optional)

If you would like to execute the tutorial in a separate workspace follow these steps: Create a New Workspace.

Note: If you already have a workspace open, this will restart Workshop. Before beginning, you might want to launch help in standalone mode to avoid an interruption the restart could cause, then locate this topic in the new browser. See Using Help in a Standalone Mode for more information

For Workshop Studio and Workshop for JSP Users: Install WebLogic Server

If you are using Workshop for WebLogic, skip this step and go directly to the next step.

If you are a Workshop Studio or Workshop for JSP user, follow these instructions in install the WebLogic Server domain for Workshop:

This server domain contains runtime libraries required by the tutorial application.

Undeploy Previous Tutorial Code

WebLogic Server does not support the deployment of projects with the same name from two different locations on disk.

For this reason, anytime you deploy a sample or run through a tutorial, you should check your server for previous deployments of the same code. If your server already has a deployment of the sample or tutorial code, you should undeploy any previous code.

Create a New Web Project and a New EAR Project

  1. Right-click anywhere within the Project Explorer view and select New > Dynamic Web Project.
    Click Next.
  2. In the Project Name field, enter JSFWeb.
    Place a checkmark next to Add project to an EAR.
    Confirm that the field EAR Project Name shows the value: JSFWebEAR.
    Click Next.

  3. Place a check mark next to the facet JSF.
    Click Finish.

Import Files into the Web Project

In this step you will import control files into your web project, control files that provide access to customer data.

  1. On the Project Explorer tab, open the nodes JSFWeb > Java Resources.
  2. Open Windows Explorer (or your operating system's equivalent) and navigate to the directory BEA_HOME/tools/eclipse_pkgs/1.0/pkgs/eclipse/plugins/com.bea.workshop.product.wl.samples_1.0.1/tutorials/resources/jsf/ and locate the folders businessObjects and controls.
  3. Drag the folders businessObjects and controls into the Project Explorer tab directly onto the folder JSFWeb/Java Resources/src.
  4. Confirm that the following directory and file structure exists before proceeding.

Add a WebLogic Server

In this step you will point to a server where you can deploy your application.

Note: If you have executed the JSF tutorial before, it is recommended that you either (1) remove previous JSF tutorial code from your server or (2) create a new server domain.

  1. Click the Servers tab.
  2. Right-click anywhere within the Servers tab, and select New > Server.
  3. In the New Server dialog, select BEA Systems > BEA WebLogic Server v10.0.
    Click Next.
  4. In the Domain home field, use the pulldown to set the domain to BEA_HOME/wlserver_10.0/samples/domains/workshop_10.1. (Note: if you are using a newly created server domain for the JSF tutorial, then use the Browse button to navigate to that new server domain, e.g., BEA_HOME/user_projects/domains/base_domain.)
    Click Next.
  5. In the Available projects column, select JSFWebEAR. Click the Add button to move the selected project to the Configured projects column.
  6. Click Finish.

    A new server is added to the Servers tab.

You can use the Servers tab to manage your servers and project deployments as you develop your applications.

To deploy or undeploy a project from a server, right-click the server and select Add and Remove Projects.

For more properties, double-click a server.

Related Topics

Integrating Java Server Faces into a Web Application

Click one of the following arrows to navigate through the tutorial:


Still need help? Post a question on the Workshop newsgroup.

 

Skip navigation bar   Back to Top