Chapter 6 Generating Persistent Objects for Java and JSF Pages


Installing JSF runtime jar files

You can use an IDE like Eclipse WTP or Sybase WorkSpace to edit, deploy and test JSF pages.

If the IDE does not include JSF runtime Jar files, you will need to download a copy and install them.

You can use the following JSF runtimes:

JSF reference implementation

Apache My Faces

Steps To install the JSF reference implementation:

  1. Download the JSF reference implementation from the Sun JavaServer Faces website: http://java.sun.com/javaee/javaserverfaces/
  2. Unzip the downloaded file into a folder. This folder contains the required library files:

  3. The JSF reference implementation requires an additional jar file:



    You can download it from the Apache Jakarta Project website: http://jakarta.apache.org/.

    Unzip the downloaded file to obtain the folder "jakarta-taglibs\standard\lib", and copy the jstl.jar file to the JSF reference implementation lib folder.
  4. Define a "JSF_LIB" variable in the PowerDesigner "General Options" window, Variables tab to indicate the JSF reference implementation lib folder path.

Steps To install the JSF reference implementation:

  1. Download the Apache MyFaces JSF implementation from the Apache MyFaces Project website: http://myfaces.apache.org/

    Select the current release of Apache MyFaces, for example, myfaces-1.1.1.zip.
  2. Download the current release of Apache MyFaces, and unzip it into a folder, which will contain the following jar files:



    Remove the myfaces-api.jar and myfacs-impl.jar files.
  3. Download the dependency jar files from the same site and copy the jar files of the folder myfaces-blank-example\WEB-INF\lib to the Apache MyFaces lib folder. You should have the following jar files:

  4. Define a "JSF_LIB" variable in the PowerDesigner "General Options" window, Variables tab to indicate the Apache MyFaces implementation lib folder path.

 


Copyright (C) 2008. Sybase Inc. All rights reserved.