BreadcrumbsHome / JSF Tutorial #3: JavaServer Faces Tutorial (JSF 2.2) – Setup Your Development Environment
JSF Tutorial #3: JavaServer Faces Tutorial (JSF 2.2) – Setup Your Development Environment
Last Updated on Saturday, 16 May 2015 Written by Chad Darby Monday, 4 May 2015
In this video, I will give you an an overview of how to set up your development environment for JSF.
Please SUBSCRIBE to my YouTube channel.
Do You Need More Details?
- Do you need to connect to a database?
- Display SQL results in a HTML table?
- Perform SQL insert, updates and deletes?
- Database Integration with JDBC
- Displaying Data in Lists and Tables
- Validating HTML Forms
- Implementing Business Logic with Managed Beans
- Deploying applications with WAR Files
Follow luv2code with the links below:
JSF Tutorial Transcript:
Hey, welcome back. In this video, I’m going to show you how to set up your development environment for Java Server Faces. We’ll actually cover the required software for our JSF development environment, and we’ll also discuss the high level steps on getting everything set up.
Before we get into all the gory details of the JSF requirements, the one bare bones essential thing that you need is that you’ll need to have the Java Development Kit installed, not the JRE, but the actual JDK or the Java Development Kit. You can check out my YouTube video that will take you through the steps on how to install Java. You can simply go to http://www.luv2code.com/install-java, and that will take you through all the steps on installing the Java Development Kit. At this point, I’ll kind of assume that you have the Java Development Kit already installed, and I’ll move forward with the next steps.
All right, once you have the JDK installed, then we’ll go through the required software for building JSF applications. You’re going to need the following: the first thing you’re going to need is a Java Application Server. There’s a lot of different Java Application Servers out there, like Tomcat, GlassFish, JBoss, WebLogic, WebSeer, and so on, the list goes on and on. However, to keep things simple and straight forward, we’re going to make use of the Tomcat server. The following videos will show you how to install the Tomcat server.
The next thing that you’re going to need is a development environment or a Java IDE. When you make use of an IDE or a development tool, really, you can really use any tool that you want. You can use a text editor like TextPad or NotePad or VI. You can use NetBeans or whatever, but to keep things simple, I’m going to focus on one tool, and we’re going to make use of the Eclipse development environment. It’s the most popular Java development environment. I’ll show you to install that in the following slides.
The third thing that you’re going to need is the JSF JAR files. JSF is an API. They have a number of classes and interfaces that you have to use, and you’ll have to download those JAR files and include them in your project. You can manually download the JAR files from Oracle’s website and manually include them, however, I’m going to show you this really cool trick in Eclipse where Eclipse will actually automatically download the JSF JAR files for you and include it into your project. You’ll see this information in the following videos.
This is a lot of information to cover in just one video, as far as getting all this software installed. What I’m going to do is I’m actually going to break it up into multiple videos.
The first thing I’ll do is I’ll show you how to install the Java Application Server or Tomcat, and I’ll show you how to do it for the different operating systems. I’ll show you how to install Tomcat for Microsoft Windows and also for the Macintosh, then we’ll move forward to our Java IDE, Eclipse, and again, I’ll show you how to install it for the Windows and also how to install it for the Mac.
Finally, I’ll show you how to pull this all together by making use of Eclipse. We’ll have Eclipse run TomCat, and also I’ll show you how to have Eclipse download those JSF JAR files for you. All this is coming up in the following videos. For Tomcat and Eclipse, just follow the appropriate videos for your operating system, and then everything else will merge up after those videos.
Let’s just do a quick summary. In this video, we discussed the required software that’s required for JSF development, and we also covered the high level steps. Stick around. In the following videos, I’ll show you how to go through each one of those steps as far as installing the app server, the IDE, and getting the JSF JAR files installed in your project.