JavaServer Faces (JSF) Woodstock
Components
(donated to Open Source by Sun)
In this lab, you are going to build, run and examine Woodstock
components.
Expected duration: 90 minutes
(excluding homework)
Prerequisites
This hands-on lab assumes you have some basic knowledge or
programming experience on the following technologies.
- Servlet and JSP programming
- MVC (Model, View, and Controller) architecture
Software Needed
Before you begin, you need to install the following software on your
computer.
- Java Standard Development Kit (JDK™) version 5.0 (download)
- If you already have installed JDK 5.0, you
can skip this.
- The name of the installation file is as following (for JDK 5.0
update x)
- jdk-1_5_0_xx-windows-i586-p.exe (Windows)
- jdk-1_5_0_xx-linux-i586.bin (Linux)
- jdk-1_5_0_xx7-solaris-i586.sh (Solaris x86)
- NetBeans IDE 5.5.1 + Sun Java System Application Server 9 Update
1 bundle (download)
- When you install NetBeans IDE 5.0, it will ask you which JDK
you want to use.
- You can download and install NetBeans IDE 5.5 (download) and
Sun Java System App Server 9 Update 1 (download)
individually. In this case, you will have to add Sun Java System
App Server as additional runtime platform manually as described below.
- 4118_jsfwoodstock.zip (download)
- It contains this document and the lab contents
- Download it and unzip in a directory of your choice
OS platforms you can use
- Windows
- Solaris x86, Solaris Sparc
- Linux
- Mac OS X
Change Log
Things to add/imrpove
- More detailed explanation of the lab exercise
Lab Exercises
Exercise 1: Build and run
"woodstock-example" sample application
In this exercise,
you will learn how to build and run "woodstock-example" sample
application.
(1.1)
Open, build, and run "woodstock-example" sample JSP application
0. Start NetBeans IDE.
1. Open woodstock-example
NetBeans project.
- Select File->Open Project (Ctrl+Shift+O). The Open Project dialog box appears.
- Browse down to <LAB_UNZIPPED_DIRECTORY>/jsfwoodstock/samples
directory.
- Windows: If you unzipped the 4118_jsfwoodstock.zip
file under
C:\
directory, the directory to which you want
to browse down should be C:\jsfwoodstock\samples.
- Solaris/Linux: If you unzipped the 4118_jsfwoodstock.zip
file under $HOME
directory, the directory to which you want
to browse down should be $HOME/jsfwoodstock/samples.
- Select woodstock-example.
- Click Open Project Folder.
The woodstock-example
project node appears under Projects tab
window.
2. Add libarary files to the project.
- Right click woodstock-example
project and select Properties.
- Observe that Project Properties dialog box appears.
- Select Libraries under Categories on the left and select Add JAR/Folder button on the right.
- Browse down to
<LAB_UNZIPPED_DIRECTORY>/jsfwoodstock/lib directory.
- Select all the files and click Open
button.
- Click OK button of the Project Properties dialog box to
close it.
3. Build and run woodstock-example project.
- Right-click woodstock-example
project and select Run Project.
- Browser gets displayed.
(1.2) Play around with
Table component
(1.3) Play around with
Property Sheet component
(1.4) Play around with
Wizard component
Summary
In this exercise, you have built
and run a ready-to-build-and-run "woodstock-example" sample
application to get a sense how the application works.
return to the top
Homework
Exercise (for people
who
are taking Sang Shin's "Java EE Programming online course")
<to be provided>