
Chapter 9 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
To install the JSF reference implementation:
- Download the JSF reference implementation from the URL: http://java.sun.com/j2ee/javaserverfaces/download.html
- Unzip the downloaded file into a folder. This folder contains the required library files:
- commons-beanutils.jar
- commons-collections.jar
- commons-digester.jar
- commons-logging.jar
- jsf-api.jar
- jsf-impl.jar
- The JSF reference implementation requires an additional jar file:
You can download it from the URL: http://cvs.apache.org/builds/jakarta-taglibs/nightly/
, select a zip file, for example, jakarta-taglibs-20051115.zip.
Unzip the downloaded file, and there will be a folder "jakarta-taglibs\standard\lib". Then copy the jstl.jar file to the JSF reference implementation lib folder.
- Define a "JSF_LIB" variable in the PowerDesigner "General Options" window, Variables tab to indicate the JSF reference implementation lib folder path.
To install the JSF reference implementation:
- Download the Apache MyFaces JSF implementation from the URL: http://myfaces.apache.org/binary.cgi
Select the current release of Apache MyFaces, for example, myfaces-1.1.1.zip.
- Unzip the downloaded file into a folder. This folder contains several jar files:
- myfaces-all.jar
- myfaces-api.jar
- myfaces-impl.jar
Remove the myfaces-api.jar and myfacs-impl.jar files.
Download the dependency jar files from the myfaces examples at the URL: http://myfaces.apache.org/binary.cgi
, select a zip file, for example, myfaces-1.1.1-examples.zip.
- 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:
- commons-beanutils-1.6.1.jar
- commons-codec-1.2.jar
- commons-collections-3.0.jar
- commons-digester-1.5.jar
- commons-el.jar
- commons-logging.jar
- commons-validator.jar
- log4j-1.2.8.jar
- Define a "JSF_LIB" variable in the PowerDesigner "General Options" window, Variables tab to indicate the Apache MyFaces implementation lib folder path.
Copyright (C) 2006. Sybase Inc. All rights reserved.
|
|