Create a template that contains a header, left side, and main content area as shown below.

You do not need to modify the template file.

Create another file called navigation.xhtml. This will be used to contain links

Home
Products
Contact Us

Inside these tags create a div tag with a class that matches the name of the div in the template where the navigation will appear which is called left.

Inside the div tag create the links using the < h:commandLink> tag.

The links must be enclosed in < h:form> tags.

Next create the pages for the links with names such as home.xhtml, products.xhtml, and contactus.xhtml based on the template.

All three pages will use < ui:include> tags to place the navigation in the left div. And for all three pages place "Welcome to Our Company" in the top area and change the content to say what page it is.

Below is how your pages should look. see image.

Clicking the Products link shows this: see image.

From the Products page, clicking the Contact Us links displays this:

Note: the address bar does not display the correct page. So for the Contact Us page, it displays in the address bar products.xhtml since I clicked the link from that page. It displays the last page that was displayed.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.