From the course: Java EE 8 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Resources - Java EE Tutorial
From the course: Java EE 8 Essential Training
Resources
- [Instructor] Most web applications are built using external CSS, JavaScript, or images. We're going to take a look at how we can reference these resources within a JSF application. To get started, we're going to modify our template, and the first thing we need to do is replace the <head> HTML tag with its JSF equivalent. So we'll go ahead and add the "h" prefix so that we can pull that tag from the HTML tag library in JSF. Once that's put in place, we can go ahead and we can use the <outputStylesheet> tag in order to point to our global CSS style sheet. So the first thing we do is specify the library attribute, and here we can specify that this is going to be CSS, and then we specify the name of our style sheet, which will be global.css. The next thing we're going to do is add a banner image into our application. So here where we have our table, we're going to insert a new row, and then inside of that row, we're going…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.