In this section, we will use an Integrated Development Environment (IDE) to create a new folder and add some pages into it, as follows:
In your web project, create a new folder in the
webapp
project folder and call itchapter4
.Then create three JSF template client pages based on the
chaptersTemplate.xhtml
template in the new folder and call themindex.xhtml
,withPFEquivalent.xhtml
, andstandardJSFWithPFThemes.xhtml
.In the
chaptersTemplate.xhtml
template, add the following code under thechapter2
submenu:<p:submenu id="chapter4" label="Chapter 4"> <p:menuitem id="c4index" value="Standard JSF inputText" url="/chapter4/index.xhtml"/> <p:menuitem id="c4andPFInput" value="Standard JSF vs PrimeFaces inputText" url="/chapter4/ withPFEquivalent.xhtml"/> <p:menuitem id="c4standardWithPFThemes" value="Standard inputText with PrimeFaces theme" url="/chapter4/ standardJSFWithPFThemes.xhtml"/> </p:submenu...