WEBVTT

00:01.040 --> 00:01.400
All righty.

00:01.400 --> 00:05.090
Let's go ahead and move into Eclipse and let's go ahead and get started.

00:07.300 --> 00:10.110
So the first thing we're going to do is create a new project.

00:10.120 --> 00:13.990
So I'll say file new dynamic web project.

00:18.290 --> 00:20.930
So the actual name of the project I'll give.

00:20.960 --> 00:21.830
Hello.

00:25.730 --> 00:28.850
I'll keep the target runtime for Apache Tomcat.

00:31.420 --> 00:37.420
And for the configuration section, I'll actually click on the Modify button because I want to modify

00:37.420 --> 00:40.300
this configuration to support JSF.

00:42.100 --> 00:46.750
So here under the project facets, there's an entry here for a Java server faces.

00:46.780 --> 00:52.510
I'll go ahead and check that box and I'm going to use JSF to point to in this video series.

00:54.610 --> 00:56.830
Go ahead and click on the OC button here.

00:58.650 --> 00:59.910
Click on next.

01:01.860 --> 01:06.310
Now in this screen regarding our source folders, let's go ahead and make a modification here.

01:06.330 --> 01:10.860
Let's go ahead and select the first item source main Java and let's remove this entry.

01:12.110 --> 01:17.240
And now let's go ahead and click on Add folder and then we'll add the folder named Source.

01:17.390 --> 01:21.680
I'm making this change here just to stay consistent with our existing videos.

01:25.120 --> 01:25.450
All righty.

01:25.450 --> 01:26.350
So that looks pretty good.

01:26.350 --> 01:28.030
Let's go ahead and click on next.

01:32.570 --> 01:37.340
And then for the content directory, I'll change that directory name to web content.

01:37.340 --> 01:43.280
So again, staying consistent with our videos and also this is the directory name that was used in previous

01:43.280 --> 01:44.330
versions of Eclipse.

01:44.330 --> 01:48.410
So again, just staying consistent with what you'll see on Web projects.

01:51.850 --> 01:52.150
All righty.

01:52.150 --> 01:53.050
So that looks pretty good.

01:53.050 --> 01:54.730
Let's go ahead and click on next.

01:58.130 --> 02:03.350
Now for this section here for the JSF implementation library for the type, I'll choose the dropdown

02:03.350 --> 02:09.380
and I'll choose disable library configuration because we'll do this manually later in the video.

02:10.790 --> 02:14.270
I keep all the other defaults here for configuring the JSF servlet.

02:15.430 --> 02:16.480
And down near the bottom.

02:16.480 --> 02:23.530
This will allow us to access the JSF, face a servlet by using interfaces prefix on our URL.

02:26.270 --> 02:27.950
I'll go ahead and click on Finish.

02:29.640 --> 02:34.690
And at this point we have a very basic project set up called Helo that we just created.

02:36.140 --> 02:38.820
Now there's still some additional steps that I need to do here.

02:38.840 --> 02:44.150
I actually need to download the JSF libraries and add them to my project, and I'll show you how to

02:44.150 --> 02:45.470
do that in a second.

02:47.050 --> 02:52.210
So let's go ahead and open up a web browser and we're going to download those JSF files.

02:52.240 --> 02:58.190
I'll simply go to love to code slash download Dash JSF.

02:58.210 --> 03:04.360
This will actually redirect you to the repository where you can download the JSF libraries.

03:07.360 --> 03:07.720
All righty.

03:07.720 --> 03:11.230
So we're here at the repository here for JSF.

03:11.470 --> 03:16.650
Let's go ahead and scroll down on this list and I'll show you the actual file that you want to download.

03:16.660 --> 03:19.260
So let me go ahead and zoom in here for a second.

03:19.270 --> 03:25.950
You want to download the file Java X dot faces dash 2.2.8. jar.

03:25.960 --> 03:31.210
That's the version of the Jar file that will work with this video series with no problems.

03:33.870 --> 03:37.110
So you go and select that link, download it to your file system.

03:37.110 --> 03:40.080
Your browser may prompt you and then you have the file.

03:40.080 --> 03:41.970
Download it to your computer.

03:45.480 --> 03:49.200
All right, so let's go to our file system in my downloads directory.

03:49.230 --> 03:51.660
Here's the jar file that was just downloaded.

03:56.600 --> 04:00.550
So let's go ahead and get this set up for our Eclipse project.

04:00.560 --> 04:04.150
So we basically want to copy this to our Web live directory.

04:04.160 --> 04:08.300
So I'll go ahead and copy that jar file from my file system.

04:08.390 --> 04:14.060
I'll move over to Eclipse and I'll paste it into the directory web lib.

04:15.580 --> 04:19.950
It's very important that you paste the jar file into a web and flip because that's a special class path

04:19.960 --> 04:22.450
directory that your project will use.

04:22.930 --> 04:23.920
And that's basically it.

04:23.920 --> 04:29.080
So you've successfully downloaded the GSF Jar file and added it to your JSF project.
